Commit 53f56602 authored by Neal Norwitz's avatar Neal Norwitz

Get test to consistently show no leaks

parent 7171452e
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment