]> granicus.if.org Git - python/commitdiff
Use integer above sys.maxunicode for range test. Fixes #608884.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 14 Sep 2002 09:10:04 +0000 (09:10 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 14 Sep 2002 09:10:04 +0000 (09:10 +0000)
2.2.2 candidate.

Lib/test/test_unicode.py

index 7f7041298b88d4ccd72a5ab8b2ad6d7d7facbe83..a57d6f437259015c1ebd6cf8a88dd13ecab8a250 100644 (file)
@@ -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...')