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