You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
tests/extmod: Add test for ure regexes leading to infinite recursion.
These now should be caught properly and lead to RuntimeError instead of crash.
This commit is contained in:
@@ -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")
|
||||
@@ -0,0 +1 @@
|
||||
RuntimeError
|
||||
Reference in New Issue
Block a user