Fix chr() test (1000000 was accepted on a UCS4 build).

This commit is contained in:
Walter Dörwald 2007-06-08 10:38:38 +00:00
parent 2bf7138bb7
commit 0157ebe999
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class ExceptionTests(unittest.TestCase):
except TypeError: pass
self.raise_catch(ValueError, "ValueError")
self.assertRaises(ValueError, chr, 1000000)
self.assertRaises(ValueError, chr, sys.maxunicode+1)
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
try: x = 1/0