Fixed .srctree tests execution on Windows.
authorNikita Nemkin <nikita@nemkin.ru>
Wed, 24 Apr 2013 13:22:37 +0000 (19:22 +0600)
committerNikita Nemkin <nikita@nemkin.ru>
Wed, 24 Apr 2013 13:22:37 +0000 (19:22 +0600)
runtests.py

index c50ae9e..53ff850 100755 (executable)
@@ -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)