mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 09:30:24 +08:00
18 lines
216 B
Python
18 lines
216 B
Python
|
# test bad exception match
|
||
|
|
||
|
try:
|
||
|
try:
|
||
|
a
|
||
|
except 1:
|
||
|
pass
|
||
|
except TypeError:
|
||
|
print("TypeError")
|
||
|
|
||
|
try:
|
||
|
try:
|
||
|
a
|
||
|
except (1,):
|
||
|
pass
|
||
|
except TypeError:
|
||
|
print("TypeError")
|