mirror of https://github.com/python/cpython
Fix chr() test (1000000 was accepted on a UCS4 build).
This commit is contained in:
parent
2bf7138bb7
commit
0157ebe999
|
@ -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, 1000000)
|
self.assertRaises(ValueError, chr, sys.maxunicode+1)
|
||||||
|
|
||||||
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
|
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
|
||||||
try: x = 1/0
|
try: x = 1/0
|
||||||
|
|
Loading…
Reference in New Issue