Kaydet (Commit) 40dc919b authored tarafından Ezio Melotti's avatar Ezio Melotti

Fix range in test.

üst e92ff050
......@@ -1410,7 +1410,7 @@ class UnicodeTest(string_tests.CommonTest,
# UTF-8 must be roundtrip safe for all code points
# (except surrogates, which are forbidden).
u = ''.join(map(chr, list(range(0, 0xd800)) +
list(range(0xe000, 0x10ffff))))
list(range(0xe000, 0x110000))))
for encoding in ('utf-8',):
self.assertEqual(str(u.encode(encoding),encoding), u)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment