Commit 02f6f212 authored by scoder's avatar scoder

Merge pull request #217 from nnemkin/runtests_srctree_fix

Fixed .srctree tests execution
parents ea9ca9d4 cbebcbbd
......@@ -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)
......
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