summaryrefslogtreecommitdiff
path: root/tests/micropython/native_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/micropython/native_gen.py')
-rw-r--r--tests/micropython/native_gen.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/micropython/native_gen.py b/tests/micropython/native_gen.py
index 62c324634..7e1ee25bc 100644
--- a/tests/micropython/native_gen.py
+++ b/tests/micropython/native_gen.py
@@ -1,5 +1,6 @@
# test for native generators
+
# simple generator with yield and return
@micropython.native
def gen1(x):
@@ -16,6 +17,7 @@ try:
except StopIteration as e:
print(e.args[0])
+
# using yield from
@micropython.native
def gen2(x):