Skip to content

Commit

Permalink
Remove old typo.
Browse files Browse the repository at this point in the history
Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd
(issue python#3672) lone surrogates are not accepted and should be removed.
  • Loading branch information
serhiy-storchaka committed Sep 8, 2016
1 parent 5940c53 commit c49a516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def test_encoding(self):
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)
Expand Down

0 comments on commit c49a516

Please sign in to comment.