micropython: add micropython component
This commit is contained in:
21
components/language/micropython/tests/basics/try4.py
Normal file
21
components/language/micropython/tests/basics/try4.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# triple nested exceptions
|
||||
|
||||
def f():
|
||||
try:
|
||||
foo()
|
||||
except:
|
||||
print("except 1")
|
||||
try:
|
||||
bar()
|
||||
except:
|
||||
print("except 2")
|
||||
try:
|
||||
baz()
|
||||
except:
|
||||
print("except 3")
|
||||
bak()
|
||||
|
||||
try:
|
||||
f()
|
||||
except:
|
||||
print("f except")
|
Reference in New Issue
Block a user