summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-08 12:47:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-08 12:47:27 (GMT)
commitc49a516ae987bc5b5c2a363a16365b3d863d7c2c (patch)
tree1c5a774bb7b716910c1119e37199b00bc4c6db42 /Lib/test/test_bytes.py
parent5940c535b06805960d008bcafec7260dae74d9b9 (diff)
downloadcpython-c49a516ae987bc5b5c2a363a16365b3d863d7c2c.zip
cpython-c49a516ae987bc5b5c2a363a16365b3d863d7c2c.tar.gz
cpython-c49a516ae987bc5b5c2a363a16365b3d863d7c2c.tar.bz2
Remove old typo.
Initially (e0b7e34b5971) it should be \udef0, but after 52a77ef069cd (issue #3672) lone surrogates are not accepted and should be removed.
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 8bbd669..2224424 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -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)