Kaydet (Commit) e63bae6b authored tarafından Guido van Rossum's avatar Guido van Rossum

Make the test of chr() overflow pass.

(Sigh. There are so many redundant tests.)
üst 72e110c1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment