Decreased memory requirements of new tests added in issue21448.

This commit is contained in:
Serhiy Storchaka 2014-08-12 20:23:29 +03:00
commit 574d4cfdf6
1 changed files with 2 additions and 1 deletions

View File

@ -3406,7 +3406,8 @@ class TestFeedParsers(TestEmailBase):
self.assertEqual(m.items(), [('a', ''), ('b', '\x85'), ('c', '')])
def test_long_lines(self):
M, N = 1000, 100000
# Expected peak memory use on 32-bit platform: 6*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)