]> granicus.if.org Git - python/commitdiff
Remove old typo.
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Sep 2016 12:47:27 +0000 (15:47 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Sep 2016 12:47:27 +0000 (15:47 +0300)
Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd
(issue #3672) lone surrogates are not accepted and should be removed.

Lib/test/test_bytes.py

index 8bbd669fc2a33656a9878d660f5fa4cfa49b03df..2224424efbb3ece6cfb614b8a458a4da5b9bd7a4 100644 (file)
@@ -216,7 +216,7 @@ class BaseBytesTest:
         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)