summaryrefslogtreecommitdiff
path: root/tests/micropython/native_try.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-02-02 11:51:48 +1100
committerJim Mussared <jim.mussared@gmail.com>2023-02-02 12:51:03 +1100
commit8b2748269244304854b3462cb8902952b4dcb892 (patch)
tree05c315fc329eb32bb55c71303eef2183bf818e35 /tests/micropython/native_try.py
parentfe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff)
top: Update Python formatting to black "2023 stable style".
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tests/micropython/native_try.py')
-rw-r--r--tests/micropython/native_try.py3
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():