mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove old typo.
Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd (issue #3672) lone surrogates are not accepted and should be removed.
This commit is contained in:
parent
5940c535b0
commit
c49a516ae9
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ class BaseBytesTest:
|
||||||
self.assertEqual(b, self.type2test(sample[:-3], "utf-8"))
|
self.assertEqual(b, self.type2test(sample[:-3], "utf-8"))
|
||||||
|
|
||||||
def test_decode(self):
|
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"):
|
for enc in ("utf-8", "utf-16"):
|
||||||
b = self.type2test(sample, enc)
|
b = self.type2test(sample, enc)
|
||||||
self.assertEqual(b.decode(enc), sample)
|
self.assertEqual(b.decode(enc), sample)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue