diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-17 01:48:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-17 01:48:06 (GMT) |
commit | cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c (patch) | |
tree | 79e972a0c96fe507f400edd0057514e0e077fda9 /Lib/test | |
parent | 88c97845c6c5f84bb503c95828055c12c562c623 (diff) | |
download | cpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.zip cpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.tar.gz cpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.tar.bz2 |
Get test to consistently show no leaks
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_cmd_line.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |