diff options
Diffstat (limited to 'tests/extmod/ure_stack_overflow.py')
-rw-r--r-- | tests/extmod/ure_stack_overflow.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/extmod/ure_stack_overflow.py b/tests/extmod/ure_stack_overflow.py new file mode 100644 index 0000000000..d3ce0c5a7b --- /dev/null +++ b/tests/extmod/ure_stack_overflow.py @@ -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") |