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