[pypy-commit] pypy py3k: py3 inherits an additional frame here from the foo exception's __traceback__

pjenvey noreply at buildbot.pypy.org
Thu Apr 25 21:21:46 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63615:6f309fa32ef4
Date: 2013-04-25 12:19 -0700
http://bitbucket.org/pypy/pypy/changeset/6f309fa32ef4/

Log:	py3 inherits an additional frame here from the foo exception's
	__traceback__

diff --git a/pypy/module/_continuation/test/test_stacklet.py b/pypy/module/_continuation/test/test_stacklet.py
--- a/pypy/module/_continuation/test/test_stacklet.py
+++ b/pypy/module/_continuation/test/test_stacklet.py
@@ -595,7 +595,8 @@
         assert tb.tb_next.tb_frame.f_code.co_name == 'f1'
         assert tb.tb_next.tb_next.tb_frame.f_code.co_name == 'main'
         assert tb.tb_next.tb_next.tb_next.tb_frame.f_code.co_name == 'do_raise'
-        assert tb.tb_next.tb_next.tb_next.tb_next is None
+        assert tb.tb_next.tb_next.tb_next.tb_next.tb_frame.f_code.co_name == 'f1'
+        assert tb.tb_next.tb_next.tb_next.tb_next.tb_next is None
 
     def test_throw_to_starting(self):
         from _continuation import continulet


More information about the pypy-commit mailing list