[Python-3000-checkins] r56409 - python/branches/py3k-struni/Lib/test/test_exceptions.py

guido.van.rossum python-3000-checkins at python.org
Tue Jul 17 02:34:25 CEST 2007


Author: guido.van.rossum
Date: Tue Jul 17 02:34:25 2007
New Revision: 56409

Modified:
   python/branches/py3k-struni/Lib/test/test_exceptions.py
Log:
Make the test of chr() overflow pass.
(Sigh. There are so many redundant tests.)


Modified: python/branches/py3k-struni/Lib/test/test_exceptions.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_exceptions.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_exceptions.py	Tue Jul 17 02:34:25 2007
@@ -99,7 +99,7 @@
         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


More information about the Python-3000-checkins mailing list