tests: Automatically skip tests that require eval, exec or frozenset.

This commit is contained in:
Damien George
2018-02-14 16:46:44 +11:00
parent 24c513cbc3
commit 6031957473
8 changed files with 47 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
# test syntax errors
try:
exec
except NameError:
print("SKIP")
raise SystemExit
def test_syntax(code):
try:
exec(code)