From: Guido van Rossum Date: Tue, 17 Jul 2007 00:34:25 +0000 (+0000) Subject: Make the test of chr() overflow pass. X-Git-Tag: v3.0a1~628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e63bae6b09763bd00908af96fc89b9ce52f89072;p=python Make the test of chr() overflow pass. (Sigh. There are so many redundant tests.) --- diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 27ddf72ab7..56a990d649 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, sys.maxunicode+1) + self.assertRaises(ValueError, chr, 17<<16) self.raise_catch(ZeroDivisionError, "ZeroDivisionError") try: x = 1/0