diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-08 10:38:38 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-08 10:38:38 (GMT) |
commit | 0157ebe999e951a4a3a5296586b08f4f96384bb3 (patch) | |
tree | ffc59b3d896e80dc16e6d2eb0dd4fa8cc2fafcb9 | |
parent | 2bf7138bb744cbb10f71ed5de2bb977c362a2052 (diff) | |
download | cpython-0157ebe999e951a4a3a5296586b08f4f96384bb3.zip cpython-0157ebe999e951a4a3a5296586b08f4f96384bb3.tar.gz cpython-0157ebe999e951a4a3a5296586b08f4f96384bb3.tar.bz2 |
Fix chr() test (1000000 was accepted on a UCS4 build).
-rw-r--r-- | Lib/test/test_exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 30cc37c..27ddf72 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -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 |