mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
remove use of failIf
This commit is contained in:
parent
77108eb4bf
commit
46d4440cad
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue