summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ujson_loads.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ujson_loads.py')
-rw-r--r--tests/extmod/ujson_loads.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/extmod/ujson_loads.py b/tests/extmod/ujson_loads.py
index 37576e6ae8..b2e18e3af7 100644
--- a/tests/extmod/ujson_loads.py
+++ b/tests/extmod/ujson_loads.py
@@ -1,7 +1,12 @@
try:
import ujson as json
-except:
- import json
+except ImportError:
+ try:
+ import json
+ except ImportError:
+ import sys
+ print("SKIP")
+ sys.exit()
def my_print(o):
if isinstance(o, dict):