Commit 766e300e authored by Martin v. Löwis's avatar Martin v. Löwis

Use integer above sys.maxunicode for range test. Fixes #608884.

2.2.2 candidate.
parent 6622eecd
......@@ -461,13 +461,13 @@ except KeyError:
else:
verify(value == u'abc, def')
for ordinal in (-100, 0x20000):
for ordinal in (-100, 0x200000):
try:
u"%c" % ordinal
except ValueError:
pass
else:
print '*** formatting u"%%c" % %i should give a ValueError' % ordinal
print '*** formatting u"%%c" %% %i should give a ValueError' % ordinal
# formatting jobs delegated from the string implementation:
verify('...%(foo)s...' % {'foo':u"abc"} == u'...abc...')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment