summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_codeccallbacks.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2003-01-09 11:38:50 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2003-01-09 11:38:50 (GMT)
commit0cb27dd023aee4e964cd887e4c7dc2cf4f7be67e (patch)
treea2949a1c9ded4cb23b0bd64ada689a28aa57923f /Lib/test/test_codeccallbacks.py
parent4e051d459d7befbba539a0b08b11d70c33494419 (diff)
downloadcpython-0cb27dd023aee4e964cd887e4c7dc2cf4f7be67e.zip
cpython-0cb27dd023aee4e964cd887e4c7dc2cf4f7be67e.tar.gz
cpython-0cb27dd023aee4e964cd887e4c7dc2cf4f7be67e.tar.bz2
Make the test scripts work again with narrow Python builds.
Diffstat (limited to 'Lib/test/test_codeccallbacks.py')
-rw-r--r--Lib/test/test_codeccallbacks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_codeccallbacks.py b/Lib/test/test_codeccallbacks.py
index 0b664d9..47360ad 100644
--- a/Lib/test/test_codeccallbacks.py
+++ b/Lib/test/test_codeccallbacks.py
@@ -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)