From: Walter Dörwald Date: Fri, 8 Jun 2007 10:38:38 +0000 (+0000) Subject: Fix chr() test (1000000 was accepted on a UCS4 build). X-Git-Tag: v3.0a1~806 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0157ebe999e951a4a3a5296586b08f4f96384bb3;p=python Fix chr() test (1000000 was accepted on a UCS4 build). --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 30cc37c511..27ddf72ab7 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -99,7 +99,7 @@ class ExceptionTests(unittest.TestCase): except TypeError: pass self.raise_catch(ValueError, "ValueError") - self.assertRaises(ValueError, chr, 1000000) + self.assertRaises(ValueError, chr, sys.maxunicode+1) self.raise_catch(ZeroDivisionError, "ZeroDivisionError") try: x = 1/0