(original) (raw)
changeset: 103306:2150eadb54c7 user: Serhiy Storchaka storchaka@gmail.com date: Thu Sep 08 15:47:27 2016 +0300 files: Lib/test/test_bytes.py description: Remove old typo. Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd (issue #3672) lone surrogates are not accepted and should be removed. diff -r fa89fff0b52c -r 2150eadb54c7 Lib/test/test_bytes.py --- a/Lib/test/test_bytes.py Thu Sep 08 13:40:25 2016 +0200 +++ b/Lib/test/test_bytes.py Thu Sep 08 15:47:27 2016 +0300 @@ -216,7 +216,7 @@ self.assertEqual(b, self.type2test(sample[:-3], "utf-8")) def test_decode(self): - sample = "Hello world\n\u1234\u5678\u9abc\def0\def0" + sample = "Hello world\n\u1234\u5678\u9abc" for enc in ("utf-8", "utf-16"): b = self.type2test(sample, enc) self.assertEqual(b.decode(enc), sample) /storchaka@gmail.com