diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-18 21:41:23 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-18 21:41:23 +0200 |
| commit | 978296429c3eac20f25e6dff7c2e2ab59327221e (patch) | |
| tree | 6dec1af2bcdb3c58e488ec4504a5e81b931c52a8 /psutil/tests/test_testutils.py | |
| parent | 7130b3043800077b48c617325fb36358ee1d33ee (diff) | |
| download | psutil-978296429c3eac20f25e6dff7c2e2ab59327221e.tar.gz | |
some fixes to help #1762
Diffstat (limited to 'psutil/tests/test_testutils.py')
| -rwxr-xr-x | psutil/tests/test_testutils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/tests/test_testutils.py b/psutil/tests/test_testutils.py index 901715a1..31ac4dee 100755 --- a/psutil/tests/test_testutils.py +++ b/psutil/tests/test_testutils.py @@ -27,6 +27,7 @@ from psutil.tests import bind_socket from psutil.tests import bind_unix_socket from psutil.tests import call_until from psutil.tests import chdir +from psutil.tests import CI_TESTING from psutil.tests import create_sockets from psutil.tests import get_free_port from psutil.tests import HAS_CONNECTIONS_UNIX @@ -364,6 +365,7 @@ class TestMemLeakClass(TestMemoryLeak): self.assertRaises(ValueError, self.execute, lambda: 0, retries=-1) @retry_on_failure() + @unittest.skipIf(CI_TESTING, "skipped on CI") def test_leak_mem(self): ls = [] @@ -373,7 +375,7 @@ class TestMemLeakClass(TestMemoryLeak): try: # will consume around 3M in total self.assertRaisesRegex(AssertionError, "extra-mem", - self.execute, fun, times=50, retries=2) + self.execute, fun, times=50) finally: del ls |
