circuitpython/tests/basics/try_error.py
Damien George 214179b430 tests: Add tests for SyntaxError, TypeError, and other missing things.
This is intended to improve coverage of the test suite.
2015-03-25 23:10:09 +00:00

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")