circuitpython/tests/extmod/ure_debug.py
Damien George 7d851a27f1 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.
2019-08-19 16:43:00 +10:00

10 lines
197 B
Python

# test printing debugging info when compiling
try:
import ure
ure.DEBUG
except (ImportError, AttributeError):
print("SKIP")
raise SystemExit
ure.compile('^a|b[0-9]\w$', ure.DEBUG)