summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-17 01:48:06 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-17 01:48:06 (GMT)
commitcb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c (patch)
tree79e972a0c96fe507f400edd0057514e0e077fda9
parent88c97845c6c5f84bb503c95828055c12c562c623 (diff)
downloadcpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.zip
cpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.tar.gz
cpython-cb0f66f0abb6f24cad53e0eefbea1f23cd0e5f6c.tar.bz2
Get test to consistently show no leaks
-rw-r--r--Lib/test/test_cmd_line.py4
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):