[Python-checkins] r83975 - python/branches/py3k/Lib/test/support.py
victor.stinner
python-checkins at python.org
Fri Aug 13 15:47:19 CEST 2010
Author: victor.stinner
Date: Fri Aug 13 15:47:18 2010
New Revision: 83975
Log:
Oops, I did it again: add missing \ removed in previous commit
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:47:18 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
+ 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