Mercurial > cpython-lru_cache-weakref
diff Lib/test/support.py @ 63948:aa89cbb7bc21
Oops, I did it again: add missing \ removed in previous commit
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 13 Aug 2010 13:47:18 +0000 |
| parents | a449ce1f385b |
| children | 291c9afab12c |
line wrap: on
line diff
--- a/Lib/test/support.py Fri Aug 13 13:45:00 2010 +0000 +++ b/Lib/test/support.py Fri Aug 13 13:47:18 2010 +0000 @@ -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
