diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-11 00:41:41 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-11 00:41:41 (GMT) |
commit | 1286d7f0601466db10d90d94840e741e4f85c065 (patch) | |
tree | 4d3970dd4e69123240636ef7bf5959e4a7df5962 /Lib | |
parent | 7f84ab59523ab7f7d7d288551a459e24718b8c7d (diff) | |
download | cpython-1286d7f0601466db10d90d94840e741e4f85c065.zip cpython-1286d7f0601466db10d90d94840e741e4f85c065.tar.gz cpython-1286d7f0601466db10d90d94840e741e4f85c065.tar.bz2 |
test_sys: add a test on the file system encoding for darwin
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_sys.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index c056f9a..3711804 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -863,6 +863,11 @@ class SizeofTest(unittest.TestCase): # 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): old = sys.getfilesystemencoding() try: |