Kaydet (Commit) 00ac0d22 authored tarafından Neal Norwitz's avatar Neal Norwitz

Try to stop the test from leaking and yet still work on windows

üst c859b5c0
......@@ -6,12 +6,11 @@ import subprocess
class CmdLineTest(unittest.TestCase):
def start_python(self, cmd_line):
inst = popen2.Popen4('%s %s' % (sys.executable, cmd_line))
outfp, infp = inst.fromchild, inst.tochild
outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
infp.close()
data = outfp.read()
outfp.close()
inst.wait()
popen2._cleanup()
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