Get test to consistently show no leaks
diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py
index a4a656d..dd27b51 100644
--- a/Lib/test/test_cmd_line.py
+++ b/Lib/test/test_cmd_line.py
@@ -6,10 +6,12 @@
class CmdLineTest(unittest.TestCase):
def start_python(self, cmd_line):
- outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
+ inst = popen2.Popen4('%s %s' % (sys.executable, cmd_line))
+ outfp, infp = inst.fromchild, inst.tochild
infp.close()
data = outfp.read()
outfp.close()
+ inst.wait()
return data
def exit_code(self, cmd_line):