remove use of failIf

This commit is contained in:
Benjamin Peterson 2009-07-01 00:45:43 +00:00
parent 77108eb4bf
commit 46d4440cad

View file

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