tests/extmod: Add test for ure regexes leading to infinite recursion.

These now should be caught properly and lead to RuntimeError instead of
crash.
crypto-aes
Paul Sokolovsky 5 years ago
parent aba1f9167a
commit 8e0b9f495b

@ -0,0 +1,13 @@
try:
import ure as re
except ImportError:
try:
import re
except ImportError:
print("SKIP")
raise SystemExit
try:
re.match("(a*)*", "aaa")
except RuntimeError:
print("RuntimeError")
Loading…
Cancel
Save