diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2013-11-26 20:29:06 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2013-11-26 20:29:06 (GMT) |
commit | 518e6ee98b6d5a231ff9fcc603a92d15e962ba19 (patch) | |
tree | be9e42faeb406dde1f9a38cf8047809215244433 /Lib | |
parent | 03cc56539fa09db13d34783c9b1dd468f95e53ca (diff) | |
parent | a04f4e0374256adddbb84ece0b30c9bcaa66d144 (diff) | |
download | cpython-518e6ee98b6d5a231ff9fcc603a92d15e962ba19.zip cpython-518e6ee98b6d5a231ff9fcc603a92d15e962ba19.tar.gz cpython-518e6ee98b6d5a231ff9fcc603a92d15e962ba19.tar.bz2 |
Use @bigmemtest more accurately.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 index eee8a23..41b6e5f 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=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 |