diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-14 23:55:55 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-14 23:55:55 (GMT) |
commit | fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a (patch) | |
tree | f3a9df2c2b4578172e1e9b5116e3da5428870520 /Lib | |
parent | 07e99cb77406e1bc84606f49b743e41b0de8a6d5 (diff) | |
download | cpython-fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a.zip cpython-fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a.tar.gz cpython-fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a.tar.bz2 |
-- 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')
-rw-r--r-- | Lib/test/test_sre.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 9c01c66..5d19d40 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 * |