From: Nikita Nemkin Date: Wed, 24 Apr 2013 13:22:37 +0000 (+0600) Subject: Fixed .srctree tests execution on Windows. X-Git-Tag: 0.19.1~43^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbebcbbd053f55b7a4fa359a1dfc02c0035bede7;p=platform%2Fupstream%2Fpython-cython.git Fixed .srctree tests execution on Windows. --- 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)