[Python-checkins] cpython (2.7): Decreased memory requirements of new tests added in issue21448.
serhiy.storchaka
python-checkins at python.org
Tue Aug 12 19:26:14 CEST 2014
http://hg.python.org/cpython/rev/71cb8f605f77
changeset: 92084:71cb8f605f77
branch: 2.7
parent: 92081:ba90bd01c5f1
user: Serhiy Storchaka <storchaka at gmail.com>
date: Tue Aug 12 20:22:27 2014 +0300
summary:
Decreased memory requirements of new tests added in issue21448.
files:
Lib/email/test/test_email.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -2627,7 +2627,8 @@
self.assertEqual(m.keys(), ['a', 'b'])
def test_long_lines(self):
- M, N = 1000, 100000
+ # Expected peak memory use on 32-bit platform: 4*N*M bytes.
+ M, N = 1000, 20000
m = self.parse(['a:b\n\n'] + ['x'*M] * N)
self.assertEqual(m.items(), [('a', 'b')])
self.assertEqual(m.get_payload(), 'x'*M*N)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list