mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 01:20:23 +08:00
04c55f5828
For builds without the compiler enabled (and hence without eval/exec) it is useful to still be able to run as many tests as possible.
13 lines
229 B
Python
13 lines
229 B
Python
# test errors from bad function calls
|
|
try:
|
|
enumerate
|
|
except:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# function with keyword args not given a specific keyword arg
|
|
try:
|
|
enumerate()
|
|
except TypeError:
|
|
print('TypeError')
|