summaryrefslogtreecommitdiff
path: root/tests/extmod/ure_split_empty.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ure_split_empty.py')
-rw-r--r--tests/extmod/ure_split_empty.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/extmod/ure_split_empty.py b/tests/extmod/ure_split_empty.py
index 6f31e6dc6..76ce97ea6 100644
--- a/tests/extmod/ure_split_empty.py
+++ b/tests/extmod/ure_split_empty.py
@@ -4,7 +4,11 @@
# 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:
+ print("SKIP")
+ raise SystemExit
r = re.compile(" *")
s = r.split("a b c foobar")