[Python-Dev] Time for 2.3.3?
Tim Peters
tim.one at comcast.net
Fri Nov 21 11:48:27 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)
[Gustavo Niemeyer]
> 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.
The tests are never expected to fail, so I think you mean that test_re in
2.3 should expect (and suppress) the RuntimeError in these cases.
It looks like Anthony changed this most recently:
test_re.py
Revision 1.45.6.1
Tue Nov 4 14:11:01 2003 UTC (2 weeks, 3 days ago) by anthonybaxter
Branch: release23-maint
Changes since 1.45: +9 -7 lines
get tests working again. partial backport of 1.46 - I fixed the
recursive tests that used to fail, but left test_re_groupref_exists
disabled, as it fails on the release23-maint branch. Maybe something
else needs to be backported?
We've got more than one problem here, then, because Barry reports that
test_re on release23-maint, as it exists today, does *not* fail on a RedHat
9 build. So if Anthony reverted that change, test_re would pass again on
Windows, but would start to fail on RH9.
More information about the Python-Dev
mailing list