Skip to content

Commit 3900fed

Browse files
committed
tests: Skip parser test if "compile" builtin is not available.
1 parent 96f0dd3 commit 3900fed

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/basics/parser.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# parser tests
22

3+
try:
4+
compile
5+
except NameError:
6+
print("SKIP")
7+
import sys
8+
sys.exit()
9+
310
# completely empty string
411
# uPy and CPy differ for this case
512
#try:

0 commit comments

Comments
 (0)