]> granicus.if.org Git - python/commitdiff
A better message again
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 12 Jan 2011 21:58:39 +0000 (21:58 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 12 Jan 2011 21:58:39 +0000 (21:58 +0000)
Lib/test/support.py

index 897d905f3ba62b2933b648fd818893c416cc32fc..ea5b9cbda46ec2a7ed6a9c6d9c19eab7ef5a6bcc 100644 (file)
@@ -1039,7 +1039,7 @@ def bigaddrspacetest(f):
     """Decorator for tests that fill the address space."""
     def wrapper(self):
         if max_memuse < MAX_Py_ssize_t:
-            if MAX_Py_ssize_t > 2**32:
+            if MAX_Py_ssize_t >= 2**63 - 1 and max_memuse >= 2**31:
                 raise unittest.SkipTest(
                     "not enough memory: try a 32-bit build instead")
             else: