diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-14 17:35:20 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-14 17:35:20 (GMT) |
commit | 03c9e1dbc2066a1ef9da66b7fad52c8e8c9d742a (patch) | |
tree | 4b98548be7767facc2c77462b95da2c32f67157d /Lib | |
parent | fe17fd4a5d55aae107865caf98fc8f2b3fcde77c (diff) | |
download | cpython-03c9e1dbc2066a1ef9da66b7fad52c8e8c9d742a.zip cpython-03c9e1dbc2066a1ef9da66b7fad52c8e8c9d742a.tar.gz cpython-03c9e1dbc2066a1ef9da66b7fad52c8e8c9d742a.tar.bz2 |
Mac OS X denies unencodable filenames (invalid utf-8)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/support.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 871154a..963a2a7 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -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) |