changeset: 94328:1e8937861ee3 user: Victor Stinner date: Mon Jan 26 23:26:11 2015 +0100 files: Lib/test/test_codecs.py description: Issue #22286, #23321: Fix failing test on Windows code page 932 There was a bug which was fixed. The unit test was also wrong. diff -r 233b43d6f333 -r 1e8937861ee3 Lib/test/test_codecs.py --- a/Lib/test/test_codecs.py Mon Jan 26 22:43:52 2015 +0100 +++ b/Lib/test/test_codecs.py Mon Jan 26 23:26:11 2015 +0100 @@ -2954,7 +2954,7 @@ (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):