summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-08-12 17:22:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-08-12 17:22:27 (GMT)
commitce0f744a604060c9dd986760e4cffd4356f8b819 (patch)
treea7c35cb80285e8a185b67fb636d055cff083b678
parentbc6f8de73badfbc1a0662cdf0b3c7539ebdb7bf6 (diff)
downloadcpython-ce0f744a604060c9dd986760e4cffd4356f8b819.zip
cpython-ce0f744a604060c9dd986760e4cffd4356f8b819.tar.gz
cpython-ce0f744a604060c9dd986760e4cffd4356f8b819.tar.bz2
Decreased memory requirements of new tests added in issue21448.
-rw-r--r--Lib/email/test/test_email.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py
index 9ed1a0a9..c11e84b 100644
--- a/Lib/email/test/test_email.py
+++ b/Lib/email/test/test_email.py
@@ -2627,7 +2627,8 @@ class TestFeedParsers(TestEmailBase):
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)