summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/uasyncio_exception.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/extmod/uasyncio_exception.py
parentfe2a8332ff9c7cc7b66ed6da04f5a4a825309818 (diff)
downloadmicropython-8b2748269244304854b3462cb8902952b4dcb892.tar.gz
micropython-8b2748269244304854b3462cb8902952b4dcb892.zip
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/extmod/uasyncio_exception.py')
-rw-r--r--tests/extmod/uasyncio_exception.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/extmod/uasyncio_exception.py b/tests/extmod/uasyncio_exception.py
index aae55d6320..4e4f978dc2 100644
--- a/tests/extmod/uasyncio_exception.py
+++ b/tests/extmod/uasyncio_exception.py
@@ -9,6 +9,7 @@ except ImportError:
print("SKIP")
raise SystemExit
+
# main task raising an exception
async def main():
print("main start")
@@ -21,6 +22,7 @@ try:
except ValueError as er:
print("ValueError", er.args[0])
+
# sub-task raising an exception
async def task():
print("task start")
@@ -40,6 +42,7 @@ try:
except ValueError as er:
print("ValueError", er.args[0])
+
# main task raising an exception with sub-task not yet scheduled
# TODO not currently working, task is never scheduled
async def task():