mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
Make the test of chr() overflow pass.
(Sigh. There are so many redundant tests.)
This commit is contained in:
parent
72e110c1cd
commit
e63bae6b09
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ class ExceptionTests(unittest.TestCase):
|
||||||
except TypeError: pass
|
except TypeError: pass
|
||||||
|
|
||||||
self.raise_catch(ValueError, "ValueError")
|
self.raise_catch(ValueError, "ValueError")
|
||||||
self.assertRaises(ValueError, chr, sys.maxunicode+1)
|
self.assertRaises(ValueError, chr, 17<<16)
|
||||||
|
|
||||||
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
|
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
|
||||||
try: x = 1/0
|
try: x = 1/0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue