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
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins