From: Antoine Pitrou Date: Wed, 12 Jan 2011 21:40:20 +0000 (+0000) Subject: Fix @bigmemtest when no limit is given by the user (oops) X-Git-Tag: v3.2rc1~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9dd117130554d73f9944d398c63aeddbe64418e8;p=thirdparty%2FPython%2Fcpython.git Fix @bigmemtest when no limit is given by the user (oops) --- diff --git a/Lib/test/support.py b/Lib/test/support.py index 60c891ac2ef8..2062dd5cbadc 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -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: