From: Mark Dickinson Date: Tue, 26 Nov 2013 20:28:29 +0000 (+0000) Subject: Use @bigmemtest more accurately. X-Git-Tag: v3.4.0b2~464^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a04f4e0374256adddbb84ece0b30c9bcaa66d144;p=thirdparty%2FPython%2Fcpython.git Use @bigmemtest more accurately. --- diff --git a/Lib/test/test_strtod.py b/Lib/test/test_strtod.py index eee8a2322846..c5979fc98995 100644 --- a/Lib/test/test_strtod.py +++ b/Lib/test/test_strtod.py @@ -248,15 +248,15 @@ class StrtodTests(unittest.TestCase): 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=4, 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