summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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