From cbebcbbd053f55b7a4fa359a1dfc02c0035bede7 Mon Sep 17 00:00:00 2001 From: Nikita Nemkin Date: Wed, 24 Apr 2013 19:22:37 +0600 Subject: [PATCH] Fixed .srctree tests execution on Windows. --- runtests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtests.py b/runtests.py index c50ae9e..53ff850 100755 --- a/runtests.py +++ b/runtests.py @@ -1188,8 +1188,8 @@ class EndToEndTest(unittest.TestCase): old_path = os.environ.get('PYTHONPATH') os.environ['PYTHONPATH'] = self.cython_syspath + os.pathsep + (old_path or '') try: - for command in commands.split('\n'): - p = subprocess.Popen(commands, + for command in filter(None, commands.splitlines()): + p = subprocess.Popen(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE, shell=True) -- 2.7.4