summaryrefslogtreecommitdiff
path: root/Lib/test/test_sre.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-01-14 23:55:55 +0000
committerFredrik Lundh <fredrik@pythonware.com>2001-01-14 23:55:55 +0000
commitfa25a7d51fdc4c21ac569d9f62825e337a7a6b4a (patch)
treef3a9df2c2b4578172e1e9b5116e3da5428870520 /Lib/test/test_sre.py
parent07e99cb77406e1bc84606f49b743e41b0de8a6d5 (diff)
downloadcpython-git-fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a.tar.gz
-- don't use recursion for unbounded non-greedy repeat
(bugs #115903, #115696) This is based on a patch by Darrel Gallion. I'm not 100% sure about this fix, but I haven't managed to come up with any test case it cannot handle...
Diffstat (limited to 'Lib/test/test_sre.py')
-rw-r--r--Lib/test/test_sre.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py
index 9c01c666ff..5d19d40988 100644
--- a/Lib/test/test_sre.py
+++ b/Lib/test/test_sre.py
@@ -248,7 +248,7 @@ test(r"""sre.match(r'(x)*', 50000*'x').span()""",
test(r"""sre.match(r'(x)*y', 50000*'x'+'y').span()""",
(0, 50001), RuntimeError)
test(r"""sre.match(r'(x)*?y', 50000*'x'+'y').span()""",
- (0, 50001), RuntimeError)
+ (0, 50001)) # this works in 2.1
from re_tests import *