Author: Manuel Jacob <[email protected]>
Branch: py3k
Changeset: r77725:202b8993ee96
Date: 2015-05-31 18:45 +0200
http://bitbucket.org/pypy/pypy/changeset/202b8993ee96/
Log: Add a failing test for a stack depth computation bug.
diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -500,6 +500,17 @@
x *= 7
""", 'x', 42
+ def test_try_finally_bug(self):
+ yield self.simple_test, """
+ x = 0
+ try:
+ pass
+ finally:
+ x = 6
+ print(None, None, None, None)
+ x *= 7
+ """, 'x', 42
+
def test_while_loop(self):
yield self.simple_test, """
comments = [42]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit