diff options
author | Ezio Melotti <none@none> | 2011-10-04 16:06:00 (GMT) |
---|---|---|
committer | Ezio Melotti <none@none> | 2011-10-04 16:06:00 (GMT) |
commit | a9860aeb08fce7494a963746c04102d23f1cf4ac (patch) | |
tree | be8e64b6a66b80997969362be5795b75ac7b313a /Lib/test/test_builtin.py | |
parent | b7591d4780c76e17db4e143a097d128b124c2e66 (diff) | |
download | cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.zip cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.tar.gz cpython-a9860aeb08fce7494a963746c04102d23f1cf4ac.tar.bz2 |
#13054: fix usage of sys.maxunicode after PEP-393.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 4e33c23..587c1c0 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -249,8 +249,7 @@ class BuiltinTest(unittest.TestCase): self.assertEqual(chr(0xff), '\xff') self.assertRaises(ValueError, chr, 1<<24) self.assertEqual(chr(sys.maxunicode), - str(('\\U%08x' % (sys.maxunicode)).encode("ascii"), - 'unicode-escape')) + str('\\U0010ffff'.encode("ascii"), 'unicode-escape')) self.assertRaises(TypeError, chr) self.assertEqual(chr(0x0000FFFF), "\U0000FFFF") self.assertEqual(chr(0x00010000), "\U00010000") |