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/ure_split_empty.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/extmod/ure_split_empty.py') diff --git a/tests/extmod/ure_split_empty.py b/tests/extmod/ure_split_empty.py index 6f31e6dc6c..ad6334ebae 100644 --- a/tests/extmod/ure_split_empty.py +++ b/tests/extmod/ure_split_empty.py @@ -4,7 +4,12 @@ # behaviour will change in a future version. MicroPython just stops # splitting as soon as an empty match is found. -import ure as re +try: + import ure as re +except ImportError: + import sys + print("SKIP") + sys.exit() r = re.compile(" *") s = r.split("a b c foobar") -- cgit v1.2.3