Commit 8e0b9f49 authored by Paul Sokolovsky's avatar Paul Sokolovsky

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

These now should be caught properly and lead to RuntimeError instead of
crash.
parent aba1f916
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")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment