summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ure_split_empty.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-02-15 01:56:22 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-02-15 01:56:22 +0300
commitf2d732f4596064b3257abe571dc14ab61e02dec9 (patch)
treea1780309e21d0577839022283fa57b183f1a0b2b /tests/extmod/ure_split_empty.py
parent7bb146350e5de1f406dc69679ecdf4cdded5be75 (diff)
downloadmicropython-f2d732f4596064b3257abe571dc14ab61e02dec9.tar.gz
micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.zip
tests/extmod: Make tests skippable.
Diffstat (limited to 'tests/extmod/ure_split_empty.py')
-rw-r--r--tests/extmod/ure_split_empty.py7
1 files changed, 6 insertions, 1 deletions
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")