diff options
Diffstat (limited to 'tests/basics/try4.py')
-rw-r--r-- | tests/basics/try4.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/basics/try4.py b/tests/basics/try4.py new file mode 100644 index 0000000000..4d324c1876 --- /dev/null +++ b/tests/basics/try4.py @@ -0,0 +1,21 @@ +# triple nested exceptions + +def f(): + try: + foo() + except: + print("except 1") + try: + bar() + except: + print("except 2") + try: + baz() + except: + print("except 3") + bak() + +try: + f() +except: + print("f except") |