From: Neal Norwitz Date: Mon, 17 Apr 2006 01:48:06 +0000 (+0000) Subject: Get test to consistently show no leaks X-Git-Tag: v2.5a2~179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c;p=thirdparty%2FPython%2Fcpython.git Get test to consistently show no leaks --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index a4a656d451bd..dd27b511a2cf 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):