From f2be23d329ceb5df1217e50dae1828a5acbf5ccb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 26 Jan 2015 23:26:11 +0100 Subject: [PATCH] Issue #22286, #23321: Fix failing test on Windows code page 932 There was a bug which was fixed. The unit test was also wrong. --- Lib/test/test_codecs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 353a8509dd..4d5d7bbba8 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): -- 2.50.1