testdir.popen: use kwargs with defaults for stdout/stderr

This commit is contained in:
Daniel Hahler
2019-04-06 12:09:31 +02:00
parent 9ad00714ba
commit 4fca86e2af
3 changed files with 28 additions and 1 deletions

View File

@@ -1034,7 +1034,14 @@ class Testdir(object):
if colitem.name == name:
return colitem
def popen(self, cmdargs, stdout, stderr, stdin=CLOSE_STDIN, **kw):
def popen(
self,
cmdargs,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=CLOSE_STDIN,
**kw
):
"""Invoke subprocess.Popen.
This calls subprocess.Popen making sure the current working directory