[Python-checkins] cpython (merge 3.2 -> 3.3): Fix test splitting in previous commit.
antoine.pitrou
python-checkins at python.org
Mon Dec 3 21:10:56 CET 2012
http://hg.python.org/cpython/rev/6f8b5336beae
changeset: 80715:6f8b5336beae
branch: 3.3
parent: 80711:ca268ad1ccd6
parent: 80714:c9b62cd81e1f
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon Dec 03 21:09:08 2012 +0100
summary:
Fix test splitting in previous commit.
files:
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
--- a/Lib/test/test_re.py
+++ b/Lib/test/test_re.py
@@ -955,6 +955,8 @@
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 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list