]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip test_encodings() of test_os on Windows and Mac OS X
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 Aug 2010 17:22:57 +0000 (17:22 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 Aug 2010 17:22:57 +0000 (17:22 +0000)
Lib/test/test_os.py

index 710a3f4e8edd7f4e599d4821776de2c72ea4ab1d..4ab6593812b5b3de88e5a38a61390074cb1247bf 100644 (file)
@@ -1164,6 +1164,8 @@ class FSEncodingTests(unittest.TestCase):
         self.assertEqual(process.returncode, 0)
         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 check(encoding, bytesfn, unicodefn):
             encoded = self.get_output(encoding, 'repr(os.fsencode(%a))' % unicodefn)