mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests: Automatically skip tests that require eval, exec or frozenset.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# test syntax errors
|
||||
|
||||
try:
|
||||
exec
|
||||
except NameError:
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
def test_syntax(code):
|
||||
try:
|
||||
exec(code)
|
||||
|
||||
Reference in New Issue
Block a user