summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-30 13:49:18 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-30 13:49:18 +0200
commit382e8eeea23db94f2b636d993c5a10467ea19643 (patch)
treee26cc58d019c5db29ae06e26492b6ef210f035ba /tests
parent09a0c64bce93f5ebcea82e81b4b07ddd7ff76cc7 (diff)
vm: Add basic implementation of END_FINALLY opcode.
Allows to have nested try blocks with except filters. TODO: Don't add END_FINALLY's exception re-raise points to traceback.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/try2.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/basics/try2.py b/tests/basics/try2.py
index 1cca9e039..5cd74bec4 100644
--- a/tests/basics/try2.py
+++ b/tests/basics/try2.py
@@ -10,3 +10,14 @@ try:
bar()
except:
print("except 1")
+
+try:
+ print("try 1")
+ try:
+ print("try 2")
+ foo()
+ except TypeError:
+ print("except 2")
+ bar()
+except NameError:
+ print("except 1")