mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
Get test to consistently show no leaks
This commit is contained in:
parent
88c97845c6
commit
cb0f66f0ab
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue