diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 01:56:22 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-02-15 01:56:22 +0300 |
commit | f2d732f4596064b3257abe571dc14ab61e02dec9 (patch) | |
tree | a1780309e21d0577839022283fa57b183f1a0b2b /tests/extmod/uheapq1.py | |
parent | 7bb146350e5de1f406dc69679ecdf4cdded5be75 (diff) | |
download | micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.tar.gz micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.zip |
tests/extmod: Make tests skippable.
Diffstat (limited to 'tests/extmod/uheapq1.py')
-rw-r--r-- | tests/extmod/uheapq1.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/extmod/uheapq1.py b/tests/extmod/uheapq1.py index e71f817ef8..4b0e5de57e 100644 --- a/tests/extmod/uheapq1.py +++ b/tests/extmod/uheapq1.py @@ -1,7 +1,12 @@ try: import uheapq as heapq except: - import heapq + try: + import heapq + except ImportError: + import sys + print("SKIP") + sys.exit() try: heapq.heappop([]) |