micropython: add micropython component
This commit is contained in:
13
components/language/micropython/tests/basics/try_continue.py
Normal file
13
components/language/micropython/tests/basics/try_continue.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# test continue within exception handler
|
||||
|
||||
def f():
|
||||
lst = [1, 2, 3]
|
||||
for x in lst:
|
||||
print('a', x)
|
||||
try:
|
||||
if x == 2:
|
||||
raise Exception
|
||||
except Exception:
|
||||
continue
|
||||
print('b', x)
|
||||
f()
|
Reference in New Issue
Block a user