summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codecs.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-26 22:26:11 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-26 22:26:11 (GMT)
commitf2be23d329ceb5df1217e50dae1828a5acbf5ccb (patch)
treefd6363c0af5719543d0b845753440e209cfb8fe0 /Lib/test/test_codecs.py
parent3bf8684c5e6eeecbe73f62aeb9843f7a532e909e (diff)
downloadcpython-f2be23d329ceb5df1217e50dae1828a5acbf5ccb.zip
cpython-f2be23d329ceb5df1217e50dae1828a5acbf5ccb.tar.gz
cpython-f2be23d329ceb5df1217e50dae1828a5acbf5ccb.tar.bz2
Issue #22286, #23321: Fix failing test on Windows code page 932
There was a bug which was fixed. The unit test was also wrong.
Diffstat (limited to 'Lib/test/test_codecs.py')
-rw-r--r--Lib/test/test_codecs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 353a850..4d5d7bb 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -2954,7 +2954,7 @@ class CodePageTest(unittest.TestCase):
(b'\x81\x00abc', 'strict', None),
(b'\x81\x00abc', 'ignore', '\x00abc'),
(b'\x81\x00abc', 'replace', '\ufffd\x00abc'),
- (b'\x81\x00abc', 'backslashreplace', '\\xff\x00abc'),
+ (b'\x81\x00abc', 'backslashreplace', '\\x81\x00abc'),
))
def test_cp1252(self):