summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-06 20:19:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-06 20:19:07 (GMT)
commita5d9917d21556a655400d4597ee09accfafa6f45 (patch)
treeaaf7a60b6d80ba471f901e94dc5f6eebb680cd44
parentf81ad6fa5aa4cfe24256f31e5e757f3785c73313 (diff)
downloadcpython-a5d9917d21556a655400d4597ee09accfafa6f45.zip
cpython-a5d9917d21556a655400d4597ee09accfafa6f45.tar.gz
cpython-a5d9917d21556a655400d4597ee09accfafa6f45.tar.bz2
Fix test_splitlines to reach its size estimate
-rw-r--r--Lib/test/test_bigmem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bigmem.py b/Lib/test/test_bigmem.py
index 2f50344..32523e4 100644
--- a/Lib/test/test_bigmem.py
+++ b/Lib/test/test_bigmem.py
@@ -393,9 +393,9 @@ class BaseStrTest:
# take up an inordinate amount of memory
chunksize = int(size ** 0.5 + 2) // 2
SUBSTR = _(' ') * chunksize + _('\n') + _(' ') * chunksize + _('\r\n')
- s = SUBSTR * chunksize
+ s = SUBSTR * (chunksize * 2)
l = s.splitlines()
- self.assertEqual(len(l), chunksize * 2)
+ self.assertEqual(len(l), chunksize * 4)
expected = _(' ') * chunksize
for item in l:
self.assertEqual(item, expected)