From: Serhiy Storchaka Date: Tue, 12 Aug 2014 17:22:27 +0000 (+0300) Subject: Decreased memory requirements of new tests added in issue21448. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce0f744a604060c9dd986760e4cffd4356f8b819;p=python Decreased memory requirements of new tests added in issue21448. --- diff --git a/Lib/email/test/test_email.py b/Lib/email/test/test_email.py index 9ed1a0a959..c11e84b751 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)