summaryrefslogtreecommitdiff
path: root/tests/extmod/ure_debug.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-08-17 23:50:19 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-19 16:43:00 +1000
commit7d851a27f146188752e89bb026021fb8d3985395 (patch)
tree3af741a441e5c3158afc309f379583f41e52733c /tests/extmod/ure_debug.py
parent3a679eaf00b909980ad38344ec0c7395adcd0564 (diff)
extmod/modure: Make regex dump-code debugging feature optional.
Enabled via MICROPY_PY_URE_DEBUG, disabled by default (but enabled on unix coverage build). This is a rarely used feature that costs a lot of code (500-800 bytes flash). Debugging of regular expressions can be done offline with other tools.
Diffstat (limited to 'tests/extmod/ure_debug.py')
-rw-r--r--tests/extmod/ure_debug.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/extmod/ure_debug.py b/tests/extmod/ure_debug.py
index cfb264bb6..621fc8d50 100644
--- a/tests/extmod/ure_debug.py
+++ b/tests/extmod/ure_debug.py
@@ -1,7 +1,8 @@
# test printing debugging info when compiling
try:
import ure
-except ImportError:
+ ure.DEBUG
+except (ImportError, AttributeError):
print("SKIP")
raise SystemExit