Author: Philip Jenvey <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit