changeset 87592:08bcbc210a0f

Use @bigmemtest more accurately.
author Mark Dickinson <dickinsm@gmail.com>
date Tue, 26 Nov 2013 20:29:06 +0000
parents 835007ccf2b0 (current diff) 8662734296a0 (diff)
children efd0e6d675ff 28ec217ce510
files Lib/test/test_strtod.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/test/test_strtod.py	Tue Nov 26 21:37:12 2013 +0200
+++ b/Lib/test/test_strtod.py	Tue Nov 26 20:29:06 2013 +0000
@@ -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