mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
#13054: fix usage of sys.maxunicode after PEP-393.
This commit is contained in:
parent
b7591d4780
commit
a9860aeb08
7 changed files with 15 additions and 38 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue