]> granicus.if.org Git - python/commitdiff
Make the test of chr() overflow pass.
authorGuido van Rossum <guido@python.org>
Tue, 17 Jul 2007 00:34:25 +0000 (00:34 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 17 Jul 2007 00:34:25 +0000 (00:34 +0000)
(Sigh. There are so many redundant tests.)

Lib/test/test_exceptions.py

index 27ddf72ab7a3ab04ee984779cca60fd8b3e8e5df..56a990d649fe35287c424abf8450ac0fd4a9d715 100644 (file)
@@ -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