Fix @bigmemtest when no limit is given by the user (oops)

This commit is contained in:
Antoine Pitrou 2011-01-12 21:40:20 +00:00
parent aca5fa7010
commit 9dd1171305

View 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: