1
0
mirror of https://github.com/httpie/cli.git synced 2024-11-28 08:38:44 +02:00

run rst2pseudoxml.py with shell=true (#821)

makes rst2pseudoxml.py work properly on Windows

executes via a shell instead of not working
This commit is contained in:
Roger Wernersson 2019-12-04 13:33:13 +01:00 committed by Jakub Roztocil
parent 89faec994a
commit 615d887513

View File

@ -34,7 +34,8 @@ def test_rst_file_syntax(filename):
p = subprocess.Popen( p = subprocess.Popen(
['rst2pseudoxml.py', '--report=1', '--exit-status=1', filename], ['rst2pseudoxml.py', '--report=1', '--exit-status=1', filename],
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdout=subprocess.PIPE stdout=subprocess.PIPE,
shell=True
) )
err = p.communicate()[1] err = p.communicate()[1]
assert p.returncode == 0, err.decode('utf8') assert p.returncode == 0, err.decode('utf8')