http://hg.python.org/cpython/rev/305c5b9515f8 changeset: 80712:305c5b9515f8 parent: 80709:657caf5d3eb1 parent: 80711:ca268ad1ccd6 user: Antoine Pitrou <solipsis at pitrou.net> date: Mon Dec 03 20:56:27 2012 +0100 summary: Split the bigmem re test in two separate tests with different memory requirements. files: Lib/test/test_re.py | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -949,10 +949,17 @@ # Test behaviour when not given a string or pattern as parameter self.assertRaises(TypeError, re.compile, 0) + @bigmemtest(size=_2G, memuse=1) + def test_large_search(self, size): + # Issue #10182: indices were 32-bit-truncated. + s = 'a' * size + m = re.search('$', s) + self.assertIsNotNone(m) + # The huge memuse is because of re.sub() using a list and a join() # to create the replacement result. - @bigmemtest(size=_2G, memuse=20) - def test_large(self, size): + @bigmemtest(size=_2G, memuse=16 + 2) + def test_large_subn(self, size): # Issue #10182: indices were 32-bit-truncated. s = 'a' * size m = re.search('$', s) -- Repository URL: http://hg.python.org/cpython
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4