mirror of https://github.com/python/cpython
Fix test splitting in previous commit.
This commit is contained in:
commit
56a2ae27e3
|
@ -955,6 +955,8 @@ class ReTests(unittest.TestCase):
|
||||||
s = 'a' * size
|
s = 'a' * size
|
||||||
m = re.search('$', s)
|
m = re.search('$', s)
|
||||||
self.assertIsNotNone(m)
|
self.assertIsNotNone(m)
|
||||||
|
self.assertEqual(m.start(), size)
|
||||||
|
self.assertEqual(m.end(), size)
|
||||||
|
|
||||||
# The huge memuse is because of re.sub() using a list and a join()
|
# The huge memuse is because of re.sub() using a list and a join()
|
||||||
# to create the replacement result.
|
# to create the replacement result.
|
||||||
|
@ -962,10 +964,6 @@ class ReTests(unittest.TestCase):
|
||||||
def test_large_subn(self, size):
|
def test_large_subn(self, size):
|
||||||
# Issue #10182: indices were 32-bit-truncated.
|
# Issue #10182: indices were 32-bit-truncated.
|
||||||
s = 'a' * size
|
s = 'a' * size
|
||||||
m = re.search('$', s)
|
|
||||||
self.assertIsNotNone(m)
|
|
||||||
self.assertEqual(m.start(), size)
|
|
||||||
self.assertEqual(m.end(), size)
|
|
||||||
r, n = re.subn('', '', s)
|
r, n = re.subn('', '', s)
|
||||||
self.assertEqual(r, s)
|
self.assertEqual(r, s)
|
||||||
self.assertEqual(n, size + 1)
|
self.assertEqual(n, size + 1)
|
||||||
|
|
Loading…
Reference in New Issue