Coding style.

- Using subprocess.run
This commit is contained in:
Andrew Hamilton 2018-03-24 16:34:49 +10:00
parent 5715ab8ea9
commit 320670bb43
6 changed files with 16 additions and 13 deletions

View file

@ -242,7 +242,7 @@ class ParseLsLineTestCase(unittest.TestCase):
def test_against_ls(root_path, environment):
process = subprocess.Popen(
process = subprocess.run(
["ls", "--color=always", "-R", root_path],
stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=environment)
stdout, stderr = process.communicate()