From: Neal Norwitz Date: Mon, 17 Apr 2006 02:39:37 +0000 (+0000) Subject: Try to stop the test from leaking and yet still work on windows X-Git-Tag: v2.5a2~175 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00ac0d22f3ce3b439bc93e7474a6e097e89ed94d;p=python Try to stop the test from leaking and yet still work on windows --- diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index dd27b511a2..3fa7930451 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -6,12 +6,11 @@ import subprocess class CmdLineTest(unittest.TestCase): def start_python(self, cmd_line): - inst = popen2.Popen4('%s %s' % (sys.executable, cmd_line)) - outfp, infp = inst.fromchild, inst.tochild + outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line)) infp.close() data = outfp.read() outfp.close() - inst.wait() + popen2._cleanup() return data def exit_code(self, cmd_line):