From fa25a7d51fdc4c21ac569d9f62825e337a7a6b4a Mon Sep 17 00:00:00 2001 From: Fredrik Lundh Date: Sun, 14 Jan 2001 23:55:55 +0000 Subject: -- 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... --- Lib/test/test_sre.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_sre.py') 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 * -- cgit v1.2.1