Commit c92a56dc authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

Add testcase with exception handler spread across functions.

parent 3f759b71
......@@ -21,3 +21,20 @@ try:
bar()
except NameError:
print("except 1")
# Check that exceptions across function boundaries work as expected
def func1():
try:
print("try func1")
func2()
except NameError:
print("except func1")
def func2():
try:
print("try func2")
foo()
except TypeError:
print("except func2")
func1()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment