Commit 114b724a authored by Victor Stinner's avatar Victor Stinner

Skip test_encodings() of test_os on Windows and Mac OS X

parent 515ca204
...@@ -1164,6 +1164,8 @@ class FSEncodingTests(unittest.TestCase): ...@@ -1164,6 +1164,8 @@ class FSEncodingTests(unittest.TestCase):
self.assertEqual(process.returncode, 0) self.assertEqual(process.returncode, 0)
return stdout.decode('utf-8') return stdout.decode('utf-8')
@unittest.skipIf(sys.platform in ('win32', 'darwin'),
'PYTHONFSENCODING is ignored on Windows and Mac OS X')
def test_encodings(self): def test_encodings(self):
def check(encoding, bytesfn, unicodefn): def check(encoding, bytesfn, unicodefn):
encoded = self.get_output(encoding, 'repr(os.fsencode(%a))' % unicodefn) encoded = self.get_output(encoding, 'repr(os.fsencode(%a))' % unicodefn)
......
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