summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ujson_dumps.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ujson_dumps.py')
-rw-r--r--tests/extmod/ujson_dumps.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/extmod/ujson_dumps.py b/tests/extmod/ujson_dumps.py
index c0ee60d736..4a02f51704 100644
--- a/tests/extmod/ujson_dumps.py
+++ b/tests/extmod/ujson_dumps.py
@@ -1,7 +1,12 @@
try:
import ujson as json
except ImportError:
- import json
+ try:
+ import json
+ except ImportError:
+ import sys
+ print("SKIP")
+ sys.exit()
print(json.dumps(False))
print(json.dumps(True))