Coding style.
- Using subprocess.run
This commit is contained in:
parent
5715ab8ea9
commit
320670bb43
6 changed files with 16 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue