Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/extmod/ure_debug.py

10 lines
197 B
Python
Raw Normal View History

tests/extmod: Add test for ure debug printing when compiling a regex.
2017-01-26 23:45:51 +11:00
# test printing debugging info when compiling
tests/extmod: Make tests skippable.
2017-02-15 01:56:22 +03:00
try:
import ure
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-17 23:50:19 +10:00
ure.DEBUG
except (ImportError, AttributeError):
tests/extmod: Make tests skippable.
2017-02-15 01:56:22 +03:00
print("SKIP")
tests: Convert remaining "sys.exit()" to "raise SystemExit".
2017-06-10 20:14:16 +03:00
raise SystemExit
tests/extmod: Make tests skippable.
2017-02-15 01:56:22 +03:00
tests/extmod: Add test for ure debug printing when compiling a regex.
2017-01-26 23:45:51 +11:00
ure.compile('^a|b[0-9]\w$', ure.DEBUG)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 78ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API