summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 13:47:18 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 13:47:18 (GMT)
commitb4b8eb916372dcb566740455122a28b5ed9631f9 (patch)
tree902b08bb7c5268e31454e7f0319e5305abe84322 /Lib/test/support.py
parent11fd4e962dae5c9695392ffa02e50eea35eec270 (diff)
downloadcpython-b4b8eb916372dcb566740455122a28b5ed9631f9.zip
cpython-b4b8eb916372dcb566740455122a28b5ed9631f9.tar.gz
cpython-b4b8eb916372dcb566740455122a28b5ed9631f9.tar.bz2
Oops, I did it again: add missing \ removed in previous commit
Diffstat (limited to 'Lib/test/support.py')
-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 54e0599..9bb4f36 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
+ TESTFN_UNENCODEABLE = TESTFN \
+ b'-\xff'.decode(TESTFN_ENCODING, 'surrogateescape')
else:
# File system encoding (eg. ISO-8859-* encodings) can encode