summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-17 00:34:25 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-17 00:34:25 (GMT)
commite63bae6b09763bd00908af96fc89b9ce52f89072 (patch)
tree3de6bf8529449f94e82936301a3aaca835561617 /Lib
parent72e110c1cdf1ab187b0799cca788748484556028 (diff)
downloadcpython-e63bae6b09763bd00908af96fc89b9ce52f89072.zip
cpython-e63bae6b09763bd00908af96fc89b9ce52f89072.tar.gz
cpython-e63bae6b09763bd00908af96fc89b9ce52f89072.tar.bz2
Make the test of chr() overflow pass.
(Sigh. There are so many redundant tests.)
Diffstat (limited to 'Lib')
-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 27ddf72..56a990d 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, sys.maxunicode+1)
+ self.assertRaises(ValueError, chr, 17<<16)
self.raise_catch(ZeroDivisionError, "ZeroDivisionError")
try: x = 1/0