mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
Sub-issue of #9036: Fix incorrect use of Py_CHARMASK.
This commit is contained in:
parent
c7743aaac3
commit
0b9201fa1c
2 changed files with 2 additions and 1 deletions
|
@ -394,6 +394,7 @@ class UnicodeTest(
|
|||
|
||||
self.assertEqual(u'%c' % 0x1234, u'\u1234')
|
||||
self.assertRaises(OverflowError, u"%c".__mod__, (sys.maxunicode+1,))
|
||||
self.assertRaises(ValueError, u"%.1\u1032f".__mod__, (1.0/3))
|
||||
|
||||
for num in range(0x00,0x80):
|
||||
char = chr(num)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue