There was a bug which was fixed. The unit test was also wrong.
This commit is contained in:
parent
3bf8684c5e
commit
f2be23d329
@ -2954,7 +2954,7 @@ class CodePageTest(unittest.TestCase):
|
|||||||
(b'\x81\x00abc', 'strict', None),
|
(b'\x81\x00abc', 'strict', None),
|
||||||
(b'\x81\x00abc', 'ignore', '\x00abc'),
|
(b'\x81\x00abc', 'ignore', '\x00abc'),
|
||||||
(b'\x81\x00abc', 'replace', '\ufffd\x00abc'),
|
(b'\x81\x00abc', 'replace', '\ufffd\x00abc'),
|
||||||
(b'\x81\x00abc', 'backslashreplace', '\\xff\x00abc'),
|
(b'\x81\x00abc', 'backslashreplace', '\\x81\x00abc'),
|
||||||
))
|
))
|
||||||
|
|
||||||
def test_cp1252(self):
|
def test_cp1252(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user