[Python-checkins] cpython (merge 3.4 -> default): Decreased memory requirements of new tests added in issue21448.

serhiy.storchaka python-checkins at python.org
Tue Aug 12 19:26:16 CEST 2014


http://hg.python.org/cpython/rev/f07b17de3b0d
changeset:   92086:f07b17de3b0d
parent:      92083:f296d7d82675
parent:      92085:c19d3465965f
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Aug 12 20:23:29 2014 +0300
summary:
  Decreased memory requirements of new tests added in issue21448.

files:
  Lib/test/test_email/test_email.py |  3 ++-
  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
--- a/Lib/test/test_email/test_email.py
+++ b/Lib/test/test_email/test_email.py
@@ -3406,7 +3406,8 @@
         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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list