From 1ccc92717cc8fc404ae21f9e6cb9de31b8722c04 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 30 Dec 2012 11:30:15 +0100 Subject: [PATCH] The param 'close_fds' is not allowed on windos for subprocess.popen call, if there are also redirections to stdin, stdout or stderr. --- src/tex2lyx/test/runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py index bfa4c2a2e3..9fa28e67e8 100755 --- a/src/tex2lyx/test/runtests.py +++ b/src/tex2lyx/test/runtests.py @@ -70,7 +70,7 @@ def main(argv): else: lyxfile = os.path.join(outputdir, base + ".lyx") cmd = '%s -roundtrip -copyfiles -f %s %s' % (tex2lyx, texfile, lyxfile) - proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) + proc = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) proc.wait() err = proc.returncode errorstring = proc.stderr.read()