summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-01-22 13:14:26 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2016-01-22 13:14:26 +0100
commit585cb1560bc6c33c8c3c6a6547e6078b7f4e174c (patch)
tree4f1d015adf63712e2efc4ad000d3e6a9a331102a
parent779c53a1ebf0f0757877bb29ce0ef644de4fbdfe (diff)
parent931bb872731a4e6c39129c789ba1b2b7148ffa3c (diff)
downloadpsutil-585cb1560bc6c33c8c3c6a6547e6078b7f4e174c.tar.gz
Merge branch 'master' of github.com:giampaolo/psutil
-rw-r--r--test/test_psutil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_psutil.py b/test/test_psutil.py
index 1e3d40d3..f7888261 100644
--- a/test/test_psutil.py
+++ b/test/test_psutil.py
@@ -1793,6 +1793,8 @@ class TestProcess(unittest.TestCase):
p = psutil.Process(sproc.pid)
# ...in order to try to prevent occasional failures on travis
wait_for_pid(p.pid)
+ # sync trick in order to keep the subprocess alive
+ p.suspend()
normcase = os.path.normcase
self.assertEqual(p.name(), os.path.basename(funky_path))
self.assertEqual(normcase(p.exe()), normcase(funky_path))