Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cb27dd

Browse files
committed
Make the test scripts work again with narrow Python builds.
1 parent 4e051d4 commit 0cb27dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_codeccallbacks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def test_xmlcharrefvalues(self):
506506
# Python/codecs.c::PyCodec_XMLCharRefReplaceErrors()
507507
# and inline implementations
508508
v = (1, 5, 10, 50, 100, 500, 1000, 5000, 10000, 50000)
509-
if sys.maxunicode>50000:
509+
if sys.maxunicode>=100000:
510510
v += (100000, 500000, 1000000)
511511
s = u"".join([unichr(x) for x in v])
512512
codecs.register_error("test.xmlcharrefreplace", codecs.xmlcharrefreplace_errors)

0 commit comments

Comments
 (0)