tests: Skip parser test if "compile" builtin is not available.

This commit is contained in:
Damien George 2015-07-24 22:37:26 +01:00
parent 96f0dd3cbc
commit 3900fed849
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,12 @@
# parser tests
try:
compile
except NameError:
print("SKIP")
import sys
sys.exit()
# completely empty string
# uPy and CPy differ for this case
#try: