]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix @bigmemtest when no limit is given by the user (oops)
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 12 Jan 2011 21:40:20 +0000 (21:40 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 12 Jan 2011 21:40:20 +0000 (21:40 +0000)
Lib/test/support.py

index 60c891ac2ef80de8fee74ef89026ae6323b8e9e6..2062dd5cbadc902fe8b686aa59fd9ea182ceaac9 100644 (file)
@@ -1001,7 +1001,7 @@ def bigmemtest(minsize, memuse):
                 # to make sure they work. We still want to avoid using
                 # too much memory, though, but we do that noisily.
                 maxsize = 5147
-                self.assertFalse(maxsize * memuse + overhead > 20 * _1M)
+                self.assertFalse(maxsize * memuse > 20 * _1M)
             else:
                 maxsize = int(max_memuse / memuse)
                 if maxsize < minsize: