From cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Mon, 17 Apr 2006 01:48:06 +0000 Subject: Get test to consistently show no leaks --- Lib/test/test_cmd_line.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ import subprocess 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): -- cgit v0.12