micropython: add micropython component
This commit is contained in:
17
components/language/micropython/tests/basics/try_error.py
Normal file
17
components/language/micropython/tests/basics/try_error.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# test bad exception match
|
||||
|
||||
try:
|
||||
try:
|
||||
a
|
||||
except 1:
|
||||
pass
|
||||
except TypeError:
|
||||
print("TypeError")
|
||||
|
||||
try:
|
||||
try:
|
||||
a
|
||||
except (1,):
|
||||
pass
|
||||
except TypeError:
|
||||
print("TypeError")
|
Reference in New Issue
Block a user