Issue #22286, #23321: Fix failing test on Windows code page 932

There was a bug which was fixed. The unit test was also wrong.
This commit is contained in:
Victor Stinner 2015-01-26 23:26:11 +01:00
parent 3bf8684c5e
commit f2be23d329
1 changed files with 1 additions and 1 deletions

View 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):