From f2d732f4596064b3257abe571dc14ab61e02dec9 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 15 Feb 2017 01:56:22 +0300 Subject: tests/extmod: Make tests skippable. --- tests/extmod/ujson_dumps_extra.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/extmod/ujson_dumps_extra.py') diff --git a/tests/extmod/ujson_dumps_extra.py b/tests/extmod/ujson_dumps_extra.py index 0e593c3e93..a52e8224c4 100644 --- a/tests/extmod/ujson_dumps_extra.py +++ b/tests/extmod/ujson_dumps_extra.py @@ -1,5 +1,10 @@ # test uPy ujson behaviour that's not valid in CPy -import ujson +try: + import ujson +except ImportError: + import sys + print("SKIP") + sys.exit() print(ujson.dumps(b'1234')) -- cgit v1.2.3