[Python-checkins] r46303 - python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py

richard.jones python-checkins at python.org
Fri May 26 14:23:23 CEST 2006


Author: richard.jones
Date: Fri May 26 14:23:23 2006
New Revision: 46303

Modified:
   python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
Log:
OverflowWarning has gone away

Modified: python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py
==============================================================================
--- python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py	(original)
+++ python/branches/sreifschneider-newnewexcept/Lib/test/test_exceptions.py	Fri May 26 14:23:23 2006
@@ -81,17 +81,6 @@
 except NameError: pass
 
 r(OverflowError)
-# XXX
-# Obscure:  in 2.2 and 2.3, this test relied on changing OverflowWarning
-# into an error, in order to trigger OverflowError.  In 2.4, OverflowWarning
-# should no longer be generated, so the focus of the test shifts to showing
-# that OverflowError *isn't* generated.  OverflowWarning should be gone
-# in Python 2.5, and then the filterwarnings() call, and this comment,
-# should go away.
-warnings.filterwarnings("error", "", OverflowWarning, __name__)
-x = 1
-for dummy in range(128):
-    x += x  # this simply shouldn't blow up
 
 r(RuntimeError)
 print '(not used any more?)'


More information about the Python-checkins mailing list