osbuild: replace capture_output in subprocess.run
The `capture_output` argument for subprocess.run was added in 3.7, but want to support 3.6 as well. Change all the usages of it with `stdout=subprocess.PIPE` that will have the same effect, at least for stdout.
This commit is contained in:
parent
d7d1d9dbbf
commit
7a2ad6f0f8
3 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ class TestObjectStore(unittest.TestCase):
|
|||
"tree",
|
||||
"--print-only",
|
||||
path],
|
||||
capture_output=True)
|
||||
stdout=subprocess.PIPE)
|
||||
self.assertEqual(r.returncode, 0)
|
||||
js = json.loads(r.stdout)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue