summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2019-03-05 12:38:06 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2019-03-05 12:38:06 +0100
commit74bdb6487cece4b2acb8ddf716ecd3a645d287d8 (patch)
tree33c2c842c7e556cd8b7ce3a7ae297cdc8389e212
parent5357f94010f49bed052046ff07bb534d569bff64 (diff)
downloadpsutil-74bdb6487cece4b2acb8ddf716ecd3a645d287d8.tar.gz
fix ResourceWarningrelease-5.6.0
-rw-r--r--psutil/tests/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index 545f5f25..37df580e 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -364,8 +364,8 @@ def create_proc_children_pair():
s += "f.write(str(os.getpid()));"
s += "f.close();"
s += "time.sleep(60);"
- subprocess.Popen(['%s', '-c', s])
- time.sleep(60)
+ p = subprocess.Popen(['%s', '-c', s])
+ p.wait()
""" % (_TESTFN2, PYTHON_EXE))
# On Windows if we create a subprocess with CREATE_NO_WINDOW flag
# set (which is the default) a "conhost.exe" extra process will be