[Python-checkins] cpython (merge 3.3 -> default): Use @bigmemtest more accurately.

mark.dickinson python-checkins at python.org
Tue Nov 26 21:29:26 CET 2013


http://hg.python.org/cpython/rev/08bcbc210a0f
changeset:   87592:08bcbc210a0f
parent:      87590:835007ccf2b0
parent:      87591:8662734296a0
user:        Mark Dickinson <dickinsm at gmail.com>
date:        Tue Nov 26 20:29:06 2013 +0000
summary:
  Use @bigmemtest more accurately.

files:
  Lib/test/test_strtod.py |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py
--- a/Lib/test/test_strtod.py
+++ b/Lib/test/test_strtod.py
@@ -248,15 +248,15 @@
                     else:
                         assert False, "expected ValueError"
 
-    @test.support.bigmemtest(size=5 * test.support._1G, memuse=1, dry_run=False)
+    @test.support.bigmemtest(size=test.support._2G+10, memuse=3, dry_run=False)
     def test_oversized_digit_strings(self, maxsize):
         # Input string whose length doesn't fit in an INT.
-        s = "1." + "1" * int(2.2e9)
+        s = "1." + "1" * maxsize
         with self.assertRaises(ValueError):
             float(s)
         del s
 
-        s = "0." + "0" * int(2.2e9) + "1"
+        s = "0." + "0" * maxsize + "1"
         with self.assertRaises(ValueError):
             float(s)
         del s

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


More information about the Python-checkins mailing list