From 03c9e1dbc2066a1ef9da66b7fad52c8e8c9d742a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 14 Aug 2010 17:35:20 +0000 Subject: Mac OS X denies unencodable filenames (invalid utf-8) --- Lib/test/support.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12