Commit 1286d7f0 authored by Victor Stinner's avatar Victor Stinner

test_sys: add a test on the file system encoding for darwin

parent 7f84ab59
...@@ -863,6 +863,11 @@ class SizeofTest(unittest.TestCase): ...@@ -863,6 +863,11 @@ class SizeofTest(unittest.TestCase):
# sys.flags # sys.flags
check(sys.flags, size(vh) + self.P * len(sys.flags)) check(sys.flags, size(vh) + self.P * len(sys.flags))
def test_getfilesystemencoding(self):
fs_encoding = sys.getfilesystemencoding()
if sys.platform == 'darwin':
self.assertEqual(fs_encoding, 'utf-8')
def test_setfilesystemencoding(self): def test_setfilesystemencoding(self):
old = sys.getfilesystemencoding() old = sys.getfilesystemencoding()
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment