diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-23 15:45:32 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-05-23 15:45:32 +0200 |
commit | 5f47d042b3688d2fe98bd3581eae857493523da5 (patch) | |
tree | 9159dbdb5e3146e91ab227e9a62984c7dd8f917d | |
parent | 8474ba5cab3e7d0e9f86b0b0c86d158dca7963c5 (diff) | |
download | psutil-5f47d042b3688d2fe98bd3581eae857493523da5.tar.gz |
set timeout for wait()
-rwxr-xr-x | psutil/tests/test_process.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py index 26ab218e..a0b21c6e 100755 --- a/psutil/tests/test_process.py +++ b/psutil/tests/test_process.py @@ -1516,9 +1516,9 @@ class TestPopen(PsutilTestCase): self.assertRaises(AttributeError, getattr, proc, 'foo') proc.terminate() if POSIX: - self.assertEqual(proc.wait(), -signal.SIGTERM) + self.assertEqual(proc.wait(5), -signal.SIGTERM) else: - self.assertEqual(proc.wait(), signal.SIGTERM) + self.assertEqual(proc.wait(5), signal.SIGTERM) def test_ctx_manager(self): with psutil.Popen([PYTHON_EXE, "-V"], |