Skip to content
Snippets Groups Projects
Commit 8e0b9f49 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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
No related branches found
No related tags found
No related merge requests found
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")
RuntimeError
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment