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/ujson_dumps.py | |
parent | 7bb146350e5de1f406dc69679ecdf4cdded5be75 (diff) | |
download | micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.tar.gz micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.zip |
tests/extmod: Make tests skippable.
Diffstat (limited to 'tests/extmod/ujson_dumps.py')
-rw-r--r-- | tests/extmod/ujson_dumps.py | 7 |
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)) |