summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/re_stack_overflow.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/re_stack_overflow.py')
-rw-r--r--tests/extmod/re_stack_overflow.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/extmod/re_stack_overflow.py b/tests/extmod/re_stack_overflow.py
new file mode 100644
index 0000000000..90fb8296b1
--- /dev/null
+++ b/tests/extmod/re_stack_overflow.py
@@ -0,0 +1,10 @@
+try:
+ import re
+except ImportError:
+ print("SKIP")
+ raise SystemExit
+
+try:
+ re.match("(a*)*", "aaa")
+except RuntimeError:
+ print("RuntimeError")