mirror of
https://github.com/python/cpython.git
synced 2024-12-16 05:14:41 +08:00
Fix @bigmemtest when no limit is given by the user (oops)
This commit is contained in:
parent
aca5fa7010
commit
9dd1171305
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user