circuitpython/tests/basics/try_error.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
216 B
Python
Raw Normal View History

# test bad exception match
try:
try:
a
except 1:
pass
except TypeError:
print("TypeError")
try:
try:
a
except (1,):
pass
except TypeError:
print("TypeError")