summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/uheapq1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/uheapq1.py')
-rw-r--r--tests/extmod/uheapq1.py7
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([])