diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-03 20:09:08 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-12-03 20:09:08 (GMT) |
commit | 56a2ae27e3f142f5a92d43fab5296748ef8ecc98 (patch) | |
tree | e75f0355e01ebfddfb3a714d8af657632222bf8c /Lib | |
parent | b33941ab02e47bffffdcb32b2ec4cc44654540bd (diff) | |
parent | 86067c2e17b221ac10c4b4c97030c2cfc44eccaf (diff) | |
download | cpython-56a2ae27e3f142f5a92d43fab5296748ef8ecc98.zip cpython-56a2ae27e3f142f5a92d43fab5296748ef8ecc98.tar.gz cpython-56a2ae27e3f142f5a92d43fab5296748ef8ecc98.tar.bz2 |
Fix test splitting in previous commit.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_re.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 28944b1..360ba72 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -955,6 +955,8 @@ class ReTests(unittest.TestCase): s = 'a' * size m = re.search('$', s) 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() # to create the replacement result. @@ -962,10 +964,6 @@ class ReTests(unittest.TestCase): def test_large_subn(self, size): # Issue #10182: indices were 32-bit-truncated. 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) self.assertEqual(r, s) self.assertEqual(n, size + 1) |