summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_exceptions.py2
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