Commits

Anonymous committed 6dc1f41

Fix test splitting in previous commit.

Comments (0)

Files changed (1)

         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.
     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)