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 passing a string object as the key for a keyword argument
try:
exec
except NameError:
print("SKIP")
raise SystemExit
# they key in this dict is a string object and is not interned
args = {'thisisaverylongargumentname': 123}