[Python-checkins] r83974 - python/branches/py3k/Lib/test/support.py

victor.stinner python-checkins at python.org
Fri Aug 13 15:45:01 CEST 2010


Author: victor.stinner
Date: Fri Aug 13 15:45:00 2010
New Revision: 83974

Log:
Oops, create TESTFN_UNENCODEABLE from TEST_FN, not TESTFN_UNICODE

test_imp fails on Linux with C locale because TESTFN_UNICODE is not encodable
to ascii.


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	Fri Aug 13 15:45:00 2010
@@ -408,7 +408,7 @@
         b'\xff'.decode(TESTFN_ENCODING)
     except UnicodeDecodeError:
         # 0xff will be encoded using the surrogate character u+DCFF
-        TESTFN_UNENCODEABLE = TESTFN_UNICODE \
+        TESTFN_UNENCODEABLE = TESTFN
             + b'-\xff'.decode(TESTFN_ENCODING, 'surrogateescape')
     else:
         # File system encoding (eg. ISO-8859-* encodings) can encode


More information about the Python-checkins mailing list