Fix errors

This commit is contained in:
Regen
2019-11-16 02:32:28 +09:00
parent 6b591f7146
commit d08448340e
3 changed files with 17 additions and 15 deletions

View File

@@ -43,8 +43,9 @@ def test_parse_commands(cmake_build):
api.parse_doc()
p = subprocess.run(['cmake', '--help-command-list'],
capture_output=True,
universal_newlines=True)
universal_newlines=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
commands = p.stdout.strip().split('\n')
for command in commands:
@@ -59,8 +60,9 @@ def test_parse_variables(cmake_build):
api.parse_doc()
p = subprocess.run(['cmake', '--help-variable-list'],
capture_output=True,
universal_newlines=True)
universal_newlines=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
variables = p.stdout.strip().split('\n')
for variable in variables: