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 @@
# tests that differ when running under Python 3.4 vs 3.5/3.6
try:
exec
except NameError:
print("SKIP")
raise SystemExit
# from basics/fun_kwvarargs.py
# test evaluation order of arguments (in 3.4 it's backwards, 3.5 it's fixed)
def f4(*vargs, **kwargs):