]> granicus.if.org Git - python/commitdiff
Get test to consistently show no leaks
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 17 Apr 2006 01:48:06 +0000 (01:48 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 17 Apr 2006 01:48:06 +0000 (01:48 +0000)
Lib/test/test_cmd_line.py

index a4a656d451bd694ecec3ebd57de45f7d6ffde3c2..dd27b511a2cf98cafb2bc069766ae9a2b1a98160 100644 (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):