summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 13:45:00 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 13:45:00 (GMT)
commit11fd4e962dae5c9695392ffa02e50eea35eec270 (patch)
treea54c5fae81faccab942812d44bf78c90e5b4e486 /Lib
parent3603cc5fdba912602dc714aff3d5d33d56887d23 (diff)
downloadcpython-11fd4e962dae5c9695392ffa02e50eea35eec270.zip
cpython-11fd4e962dae5c9695392ffa02e50eea35eec270.tar.gz
cpython-11fd4e962dae5c9695392ffa02e50eea35eec270.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 42e2acb..54e0599 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -408,7 +408,7 @@ else:
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