]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22286, #23321: Fix failing test on Windows code page 932
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 22:26:11 +0000 (23:26 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 26 Jan 2015 22:26:11 +0000 (23:26 +0100)
There was a bug which was fixed. The unit test was also wrong.

Lib/test/test_codecs.py

index 353a8509dd876bf8931c7d5f58e87c85404d54e2..4d5d7bbba831ee00fd86c47318a7b3e755404370 100644 (file)
@@ -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):