summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-05-13 16:52:12 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-05-13 16:52:12 +0200
commitd8a1f34108e96a023446a2c9b609b22e3692916a (patch)
treee54c8ab25e8230fcd2108b4bb63011605a8192c1
parent18e88998a5f25ab9335afbaacfa3db46287bfa1f (diff)
downloadpsutil-d8a1f34108e96a023446a2c9b609b22e3692916a.tar.gz
have leak test use 3M instead of 70M to avoid swapping out on CI
-rwxr-xr-xpsutil/tests/test_testutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/psutil/tests/test_testutils.py b/psutil/tests/test_testutils.py
index 1ceccbe2..b676b76b 100755
--- a/psutil/tests/test_testutils.py
+++ b/psutil/tests/test_testutils.py
@@ -369,8 +369,9 @@ class TestMemLeakClass(TestMemoryLeak):
ls.append("x" * 24 * 1024)
try:
+ # will consume around 3M in total
self.assertRaisesRegex(AssertionError, "extra-mem",
- self.execute, fun)
+ self.execute, fun, times=50, retries=2)
finally:
del ls