diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-02-17 14:59:42 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-02-17 14:59:42 +0100 |
commit | e0df048ac1bf55ec18d03f68c0adc0bac756e136 (patch) | |
tree | 33fa50e75a360945006b8eda29db4095de14faf2 | |
parent | e70a9e354c6397cb05a27a3a46034afce335d78b (diff) | |
download | psutil-e0df048ac1bf55ec18d03f68c0adc0bac756e136.tar.gz |
attempt to fix occasional CI failure
-rw-r--r-- | psutil/tests/test_process.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 8de14ab3..225e1f09 100644 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -67,6 +67,7 @@ from psutil.tests import GLOBAL_TIMEOUT from psutil.tests import pyrun from psutil.tests import PYTHON from psutil.tests import reap_children +from psutil.tests import retry_before_failing from psutil.tests import RLIMIT_SUPPORT from psutil.tests import run_test_module_by_name from psutil.tests import safe_remove @@ -545,6 +546,7 @@ class TestProcess(unittest.TestCase): if thread._running: thread.stop() + @retry_before_failing def test_threads_2(self): p = psutil.Process() if OPENBSD: @@ -1112,7 +1114,7 @@ class TestProcess(unittest.TestCase): for p in psutil.process_iter(): if p.pid == sproc.pid: continue - self.assertTrue(p.ppid() != this_parent) + self.assertNotEqual(p.ppid(), this_parent) def test_children(self): p = psutil.Process() |