[pypy-svn] r11910 - pypy/dist/lib-python/modified-2.3.4/test

hpk at codespeak.net hpk at codespeak.net
Wed May 4 01:11:49 CEST 2005


Author: hpk
Date: Wed May  4 01:11:49 2005
New Revision: 11910

Added:
   pypy/dist/lib-python/modified-2.3.4/test/test_exceptions.py
      - copied, changed from r11906, pypy/dist/lib-python/2.3.4/test/test_exceptions.py
Log:
move test_exceptions.py to modified 

it doesn't make much sense to try to hack an interp-level
overflow warning to turn into an applevel one because that
doesn't work on Python2.4 anymore, anyway. 

With this checkin the last timeouting-test is going. 



Copied: pypy/dist/lib-python/modified-2.3.4/test/test_exceptions.py (from r11906, pypy/dist/lib-python/2.3.4/test/test_exceptions.py)
==============================================================================
--- pypy/dist/lib-python/2.3.4/test/test_exceptions.py	(original)
+++ pypy/dist/lib-python/modified-2.3.4/test/test_exceptions.py	Wed May  4 01:11:49 2005
@@ -89,11 +89,17 @@
 # ints are big enough.  But ints no longer do that by default.  This
 # test will have to go away someday.  For now, we can convert the
 # transitional OverflowWarning into an error.
-warnings.filterwarnings("error", "", OverflowWarning, __name__)
-x = 1
-try:
-    while 1: x = x+x
-except OverflowError: pass
+
+# XXX we are heading for python2.4  so it doesn't make much 
+#     sense to try to hack the following
+#     OverflowWarning->OverflowError conversion to work 
+#     for PyPy as it doesn't work on Python2.4 anymore, anyway 
+#
+#warnings.filterwarnings("error", "", OverflowWarning, __name__)
+#x = 1
+#try:
+#    while 1: x = x+x
+#except OverflowError: pass
 
 r(RuntimeError)
 print '(not used any more?)'



More information about the Pypy-commit mailing list