Commit c8e7f2cf authored by Victor Stinner's avatar Victor Stinner

Mac OS X denies unencodable filenames (invalid utf-8)

parent 01d76a45
......@@ -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)
......
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