[Python-checkins] r84035 - python/branches/py3k/Lib/test/support.py
victor.stinner
python-checkins at python.org
Sat Aug 14 19:35:20 CEST 2010
Author: victor.stinner
Date: Sat Aug 14 19:35:20 2010
New Revision: 84035
Log:
Mac OS X denies unencodable filenames (invalid utf-8)
Modified:
python/branches/py3k/Lib/test/support.py
Modified: python/branches/py3k/Lib/test/support.py
==============================================================================
--- python/branches/py3k/Lib/test/support.py (original)
+++ python/branches/py3k/Lib/test/support.py Sat Aug 14 19:35:20 2010
@@ -402,7 +402,8 @@
'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)
More information about the Python-checkins
mailing list