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(
['rst2pseudoxml.py', '--report=1', '--exit-status=1', filename],
stderr=subprocess.PIPE,
stdout=subprocess.PIPE
stdout=subprocess.PIPE,
shell=True
)
err = p.communicate()[1]
assert p.returncode == 0, err.decode('utf8')