diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py index 353a8509dd8..4d5d7bbba83 100644 --- a/Lib/test/test_codecs.py +++ b/Lib/test/test_codecs.py @@ -2954,7 +2954,7 @@ def test_cp932(self): (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):