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-Tag: v2.7.9rc1~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0f744a604060c9dd986760e4cffd4356f8b819;p=thirdparty%2FPython%2Fcpython.git 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 9ed1a0a959fe..c11e84b75138 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)