summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-14 09:10:04 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-14 09:10:04 (GMT)
commit766e300eaaf8b8ca06a1e98e94fa1c5d1a33eba6 (patch)
tree57b80e8eed9a49da75cb00b5c3fae56d0e755607
parent6622eecdaaa8625d1d8a8730c907d115a7eb2c7a (diff)
downloadcpython-766e300eaaf8b8ca06a1e98e94fa1c5d1a33eba6.zip
cpython-766e300eaaf8b8ca06a1e98e94fa1c5d1a33eba6.tar.gz
cpython-766e300eaaf8b8ca06a1e98e94fa1c5d1a33eba6.tar.bz2
Use integer above sys.maxunicode for range test. Fixes #608884.
2.2.2 candidate.
-rw-r--r--Lib/test/test_unicode.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 7f70412..a57d6f4 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -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...')