]> granicus.if.org Git - python/commitdiff
Fix range in test.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Nov 2011 15:00:46 +0000 (17:00 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 11 Nov 2011 15:00:46 +0000 (17:00 +0200)
Lib/test/test_unicode.py

index 811da0ad5e8e8191e58ad32a18e7d129ffeb9efc..5b044e2280414c7c6bf9ef71a1207deef67af2fa 100644 (file)
@@ -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)