[Python-Dev] Time for 2.3.3?

Gustavo Niemeyer niemeyer at conectiva.com
Fri Nov 21 11:22:53 EST 2003


> ======================================================================
> ERROR: test_bug_418626 (__main__.ReTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "../lib/test/test_re.py", line 410, in test_bug_418626
>     self.assertEqual(re.search('(a|b)*?c', 10000*'ab'+'cd').end(0), 20001)
>   File "C:\CODE\23\lib\sre.py", line 137, in search
>     return _compile(pattern, flags).search(string)
> RuntimeError: maximum recursion limit exceeded
> 
> ======================================================================
> ERROR: test_stack_overflow (__main__.ReTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "../lib/test/test_re.py", line 420, in test_stack_overflow
>     self.assertEqual(re.match('(x)*', 50000*'x').group(1), 'x')
>   File "C:\CODE\23\lib\sre.py", line 132, in match
>     return _compile(pattern, flags).match(string)
> RuntimeError: maximum recursion limit exceeded
> 
> ----------------------------------------------------------------------
> Ran 46 tests in 0.550s
> 
> FAILED (errors=2)

It looks like someone have backported the changes done in test_re.py.
These tests were expected to fail with the SRE from 2.3.

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the Python-Dev mailing list