summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-08-12 20:23:29 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-08-12 20:23:29 +0300
commit574d4cfdf61b35e1c3a616a6b61b4707d5ba41e5 (patch)
tree507971386d437c000414e4276c34f3ec2056cefe
parent1e133cab39a618e341e30e0ed7f266f238e73826 (diff)
parent4d83192ea05f5c14534edbff2b3a74bb19f01068 (diff)
downloadcpython-git-574d4cfdf61b35e1c3a616a6b61b4707d5ba41e5.tar.gz
Decreased memory requirements of new tests added in issue21448.
-rw-r--r--Lib/test/test_email/test_email.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py
index 48730d8e92..c3ecd0ab22 100644
--- a/Lib/test/test_email/test_email.py
+++ b/Lib/test/test_email/test_email.py
@@ -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)