mirror of https://github.com/python/cpython.git
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 wrapper(self):
|
||||||
# to make sure they work. We still want to avoid using
|
# to make sure they work. We still want to avoid using
|
||||||
# too much memory, though, but we do that noisily.
|
# too much memory, though, but we do that noisily.
|
||||||
maxsize = 5147
|
maxsize = 5147
|
||||||
self.assertFalse(maxsize * memuse + overhead > 20 * _1M)
|
self.assertFalse(maxsize * memuse > 20 * _1M)
|
||||||
else:
|
else:
|
||||||
maxsize = int(max_memuse / memuse)
|
maxsize = int(max_memuse / memuse)
|
||||||
if maxsize < minsize:
|
if maxsize < minsize:
|
||||||
|
|
Loading…
Reference in New Issue