From 08d66ccf0d7f3d4a7508e5e922906165733dc65a Mon Sep 17 00:00:00 2001 From: Mark Watts Date: Thu, 1 Aug 2019 20:15:00 -0500 Subject: [PATCH] Fixup to ExampleRunnerTest command processing --- PyOpenWorm/data_trans/connections.py | 1 - tests/ExampleRunnerTest.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PyOpenWorm/data_trans/connections.py b/PyOpenWorm/data_trans/connections.py index 735e32064..4b547228c 100644 --- a/PyOpenWorm/data_trans/connections.py +++ b/PyOpenWorm/data_trans/connections.py @@ -236,7 +236,6 @@ def translate(self, data_source, neurotransmitter_source): L.warn("Didn't find any connections matching: {}".format(conn)) else: break - print('result', res) return res diff --git a/tests/ExampleRunnerTest.py b/tests/ExampleRunnerTest.py index ef8b9f5f7..1b196630a 100644 --- a/tests/ExampleRunnerTest.py +++ b/tests/ExampleRunnerTest.py @@ -38,7 +38,7 @@ def execfile(self, example_file_name): def exec(self, command, **kwargs): if isinstance(command, string_types): - command = command.split(' ') + command = shlex.split(command) fname = tempfile.mkstemp()[1] with open(fname, 'w+') as out: stat = SP.call(command,