Make the test scripts work again with narrow Python builds.

This commit is contained in:
Walter Dörwald 2003-01-09 11:38:50 +00:00
parent 4e051d459d
commit 0cb27dd023
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ class CodecCallbackTest(unittest.TestCase):
# Python/codecs.c::PyCodec_XMLCharRefReplaceErrors()
# and inline implementations
v = (1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000)
if sys.maxunicode>50000:
if sys.maxunicode>=100000:
v += (100000, 500000, 1000000)
s = u"".join([unichr(x) for x in v])
codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)