Make the test of chr() overflow pass.

(Sigh. There are so many redundant tests.)
This commit is contained in:
Guido van Rossum 2007-07-17 00:34:25 +00:00
parent 72e110c1cd
commit e63bae6b09

View 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