Skip to content

Commit c49a516

Browse files
Remove old typo.
Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd (issue #3672) lone surrogates are not accepted and should be removed.
1 parent 5940c53 commit c49a516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_bytes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_encoding(self):
216216
self.assertEqual(b, self.type2test(sample[:-3], "utf-8"))
217217

218218
def test_decode(self):
219-
sample = "Hello world\n\u1234\u5678\u9abc\def0\def0"
219+
sample = "Hello world\n\u1234\u5678\u9abc"
220220
for enc in ("utf-8", "utf-16"):
221221
b = self.type2test(sample, enc)
222222
self.assertEqual(b.decode(enc), sample)

0 commit comments

Comments
 (0)