Get test to consistently show no leaks

This commit is contained in:
Neal Norwitz 2006-04-17 01:48:06 +00:00
parent 88c97845c6
commit cb0f66f0ab
1 changed files with 3 additions and 1 deletions

View File

@ -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):