From b4b8eb916372dcb566740455122a28b5ed9631f9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 13 Aug 2010 13:47:18 +0000 Subject: [PATCH] Oops, I did it again: add missing \ removed in previous commit --- Lib/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/support.py b/Lib/test/support.py index 54e05992018..9bb4f36d419 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