diff options
Diffstat (limited to 'tests/extmod/ure1.py')
-rw-r--r-- | tests/extmod/ure1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index 39e84d51ea..aeadf4e5c5 100644 --- a/tests/extmod/ure1.py +++ b/tests/extmod/ure1.py @@ -62,3 +62,8 @@ m = re.match('a*?', 'ab'); print(m.group(0)) m = re.match('^ab$', 'ab'); print(m.group(0)) m = re.match('a|b', 'b'); print(m.group(0)) m = re.match('a|b|c', 'c'); print(m.group(0)) + +try: + re.compile("*") +except: + print("Caught invalid regex") |