Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 114b724

Browse files
author
Victor Stinner
committed
Skip test_encodings() of test_os on Windows and Mac OS X
1 parent 515ca20 commit 114b724

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_os.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,8 @@ def get_output(self, fs_encoding, func):
11641164
self.assertEqual(process.returncode, 0)
11651165
return stdout.decode('utf-8')
11661166

1167+
@unittest.skipIf(sys.platform in ('win32', 'darwin'),
1168+
'PYTHONFSENCODING is ignored on Windows and Mac OS X')
11671169
def test_encodings(self):
11681170
def check(encoding, bytesfn, unicodefn):
11691171
encoded = self.get_output(encoding, 'repr(os.fsencode(%a))' % unicodefn)

0 commit comments

Comments
 (0)