summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ure_split_notimpl.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_notimpl.py
parent7bb146350e5de1f406dc69679ecdf4cdded5be75 (diff)
downloadmicropython-f2d732f4596064b3257abe571dc14ab61e02dec9.tar.gz
micropython-f2d732f4596064b3257abe571dc14ab61e02dec9.zip
tests/extmod: Make tests skippable.
Diffstat (limited to 'tests/extmod/ure_split_notimpl.py')
-rw-r--r--tests/extmod/ure_split_notimpl.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/extmod/ure_split_notimpl.py b/tests/extmod/ure_split_notimpl.py
index 724e9d43be..eca3ea512e 100644
--- a/tests/extmod/ure_split_notimpl.py
+++ b/tests/extmod/ure_split_notimpl.py
@@ -1,4 +1,9 @@
-import ure as re
+try:
+ import ure as re
+except ImportError:
+ import sys
+ print("SKIP")
+ sys.exit()
r = re.compile('( )')
try: