# nested try's

try:
    print("try 1")
    try:
        print("try 2")
        foo()
    except:
        print("except 2")
    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")

@@ -306,28 +306,339 @@
 rror:%0A    print(%22except 1%22)%0A
+%0A# Check that exceptions across function boundaries work as expected%0Adef func1():%0A    try:%0A        print(%22try func1%22)%0A        func2()%0A    except NameError:%0A        print(%22except func1%22)%0A%0Adef func2():%0A    try:%0A        print(%22try func2%22)%0A        foo()%0A    except TypeError:%0A        print(%22except func2%22)%0A%0Afunc1()%0A

Add testcase with exception handler spread across functions.