mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Will backport to 2.2.
This commit is contained in:
parent
910ae6283a
commit
53d93adc46
2 changed files with 5 additions and 1 deletions
|
@ -96,6 +96,10 @@ test(r"""sre.match('.*?cd', 20000*'abc'+'de').end(0)""", 60001)
|
|||
# non-simple '*?' still recurses and hits the recursion limit
|
||||
test(r"""sre.search('(a|b)*?c', 10000*'ab'+'cd').end(0)""", None, RuntimeError)
|
||||
|
||||
# bug 612074
|
||||
pat=u"["+sre.escape(u"\u2039")+u"]"
|
||||
test(r"""sre.compile(pat) and 1""", 1, None)
|
||||
|
||||
if verbose:
|
||||
print 'Running tests on sre.sub'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue