[Python-checkins] cpython (2.7): Fix misuse of the bigmemtest decorator

antoine.pitrou python-checkins at python.org
Tue Nov 26 20:00:40 CET 2013


http://hg.python.org/cpython/rev/461a4d10753a
changeset:   87586:461a4d10753a
branch:      2.7
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Nov 26 20:00:34 2013 +0100
summary:
  Fix misuse of the bigmemtest decorator

files:
  Lib/test/test_strtod.py |  6 ++----
  1 files changed, 2 insertions(+), 4 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
@@ -249,11 +249,9 @@
                     else:
                         assert False, "expected ValueError"
 
-    @test_support.bigmemtest(minsize=5 * test_support._1G, memuse=1)
+    @test_support.precisionbigmemtest(size=test_support._2G, memuse=3,
+                                      dry_run=False)
     def test_oversized_digit_strings(self, maxsize):
-        if sys.maxsize <= 0x7fffffff:
-            self.skipTest("Only applies on 64-bit systems.")
-
         # Input string whose length doesn't fit in an INT.
         s = "1." + "1" * int(2.2e9)
         with self.assertRaises(ValueError):

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


More information about the Python-checkins mailing list