@ -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()
print("except func1")
def func2():
print("try func2")
foo()
except TypeError:
print("except func2")
func1()