Fix range in test.

This commit is contained in:
Ezio Melotti 2011-11-11 17:00:46 +02:00
parent e92ff0503c
commit 40dc919b0d
1 changed files with 1 additions and 1 deletions

View File

@ -1410,7 +1410,7 @@ class UnicodeTest(string_tests.CommonTest,
# UTF-8 must be roundtrip safe for all code points # UTF-8 must be roundtrip safe for all code points
# (except surrogates, which are forbidden). # (except surrogates, which are forbidden).
u = ''.join(map(chr, list(range(0, 0xd800)) + u = ''.join(map(chr, list(range(0, 0xd800)) +
list(range(0xe000, 0x10ffff)))) list(range(0xe000, 0x110000))))
for encoding in ('utf-8',): for encoding in ('utf-8',):
self.assertEqual(str(u.encode(encoding),encoding), u) self.assertEqual(str(u.encode(encoding),encoding), u)