[pypy-commit] pypy py3k: kill this test, we no longer have the three-args raise form

antocuni noreply at buildbot.pypy.org
Tue Feb 21 10:50:39 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r52704:31dba1322ab7
Date: 2012-02-21 00:03 +0100
http://bitbucket.org/pypy/pypy/changeset/31dba1322ab7/

Log:	kill this test, we no longer have the three-args raise form

diff --git a/pypy/interpreter/test/test_pyframe.py b/pypy/interpreter/test/test_pyframe.py
--- a/pypy/interpreter/test/test_pyframe.py
+++ b/pypy/interpreter/test/test_pyframe.py
@@ -350,34 +350,6 @@
         assert len(l) == 2
         assert issubclass(l[0][0], Exception)
         assert issubclass(l[1][0], Exception)
-
-    def test_trace_raise_three_arg(self):
-        import sys
-        l = []
-        def trace(frame, event, arg):
-            if event == 'exception':
-                l.append(arg)
-            return trace
-
-        def g():
-            try:
-                raise Exception
-            except Exception, e:
-                import sys
-                raise Exception, e, sys.exc_info()[2]
-
-        def f():
-            try:
-                g()
-            except:
-                pass
-
-        sys.settrace(trace)
-        f()
-        sys.settrace(None)
-        assert len(l) == 2
-        assert issubclass(l[0][0], Exception)
-        assert issubclass(l[1][0], Exception)
         
 
     def test_trace_generator_finalisation(self):


More information about the pypy-commit mailing list