diff options
Diffstat (limited to 'tests/micropython/viper_try.py')
| -rw-r--r-- | tests/micropython/viper_try.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/micropython/viper_try.py b/tests/micropython/viper_try.py index 61335af22..f5822a668 100644 --- a/tests/micropython/viper_try.py +++ b/tests/micropython/viper_try.py @@ -1,5 +1,6 @@ # test try handling within a viper function + # basic try-finally @micropython.viper def f(): @@ -14,6 +15,7 @@ try: except NameError: print("NameError") + # nested try-except with try-finally @micropython.viper def f(): @@ -28,6 +30,7 @@ def f(): f() + # check that locals written to in try blocks keep their values @micropython.viper def f(): |
