summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/popen2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/popen2.py b/Lib/popen2.py
index 4c42958..d4b5d26 100644
--- a/Lib/popen2.py
+++ b/Lib/popen2.py
@@ -91,7 +91,8 @@ def _test():
w.close()
assert r.read() == teststr
assert e.read() == ""
- _cleanup()
+ for inst in _active[:]:
+ inst.wait()
assert not _active
print "All OK"