]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Mac OS X denies unencodable filenames (invalid utf-8)
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 14 Aug 2010 17:35:20 +0000 (17:35 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 14 Aug 2010 17:35:20 +0000 (17:35 +0000)
Lib/test/support.py

index 871154aacbfd8a2bc053be75b85e3cff843b8b8f..963a2a77b7b2f1853a68aec38e2da0245fece1bc 100644 (file)
@@ -402,7 +402,8 @@ if os.name in ('nt', 'ce'):
                   'Unicode filename tests may not be effective'
                   % (TESTFN_UNENCODABLE, TESTFN_ENCODING))
             TESTFN_UNENCODABLE = None
-else:
+elif sys.platform != 'darwin':
+    # Mac OS X denies unencodable filenames (invalid utf-8)
     try:
         # ascii and utf-8 cannot encode the byte 0xff
         b'\xff'.decode(TESTFN_ENCODING)