summaryrefslogtreecommitdiffstats
path: root/Lib/test/re_tests.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-02-18 21:04:48 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-02-18 21:04:48 (GMT)
commitc0c7ee3a6536bbea2b9632a4cc9f6cac2a4bd9b6 (patch)
tree1aedbd30e101240d849686fcc4106d686ae983f2 /Lib/test/re_tests.py
parent8ac3627b91979a069d84fb9e8500eab0a99ce762 (diff)
downloadcpython-c0c7ee3a6536bbea2b9632a4cc9f6cac2a4bd9b6.zip
cpython-c0c7ee3a6536bbea2b9632a4cc9f6cac2a4bd9b6.tar.gz
cpython-c0c7ee3a6536bbea2b9632a4cc9f6cac2a4bd9b6.tar.bz2
detect attempts to repeat anchors (fixes bug #130748)
Diffstat (limited to 'Lib/test/re_tests.py')
-rwxr-xr-xLib/test/re_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/re_tests.py b/Lib/test/re_tests.py
index 9daf8c4..aacd916 100755
--- a/Lib/test/re_tests.py
+++ b/Lib/test/re_tests.py
@@ -636,4 +636,6 @@ xyzabc
(r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'),
(r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'),
(r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'),
+ # bug 130748: ^* should be an error (nothing to repeat)
+ (r'^*', '', SYNTAX_ERROR),
]