summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-02-01 18:45:37 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-02-01 18:45:37 +0100
commit5dfb92a434ef97bdf39895e76fcfaee6400adf9b (patch)
tree3094bd38ca257f5cb075225760f814c82dc2056e
parent55ac1de8f1a322fc982d7deec75f04b06acf3bc5 (diff)
downloadpsutil-5dfb92a434ef97bdf39895e76fcfaee6400adf9b.tar.gz
try to debug win failure
-rwxr-xr-xpsutil/tests/test_process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py
index 74ae9330..648f8df3 100755
--- a/psutil/tests/test_process.py
+++ b/psutil/tests/test_process.py
@@ -1149,7 +1149,6 @@ class TestProcess(unittest.TestCase):
self.fail("num ctx switches still the same after 50.000 iterations")
def test_parent_ppid(self):
- reap_children(recursive=True)
this_parent = os.getpid()
sproc = get_test_subprocess()
p = psutil.Process(sproc.pid)
@@ -1160,7 +1159,8 @@ class TestProcess(unittest.TestCase):
for p in psutil.process_iter():
if p.pid == sproc.pid:
continue
- self.assertNotEqual(p.ppid(), this_parent)
+ # XXX: sometimes this fails on Windows; not sure why.
+ self.assertNotEqual(p.ppid(), this_parent, msg=p)
def test_children(self):
p = psutil.Process()