Commit cbebcbbd authored by Nikita Nemkin's avatar Nikita Nemkin

Fixed .srctree tests execution on Windows.

parent ea9ca9d4
...@@ -1188,8 +1188,8 @@ class EndToEndTest(unittest.TestCase): ...@@ -1188,8 +1188,8 @@ class EndToEndTest(unittest.TestCase):
old_path = os.environ.get('PYTHONPATH') old_path = os.environ.get('PYTHONPATH')
os.environ['PYTHONPATH'] = self.cython_syspath + os.pathsep + (old_path or '') os.environ['PYTHONPATH'] = self.cython_syspath + os.pathsep + (old_path or '')
try: try:
for command in commands.split('\n'): for command in filter(None, commands.splitlines()):
p = subprocess.Popen(commands, p = subprocess.Popen(command,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
shell=True) shell=True)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment