Skip to content

Commit e864d64

Browse files
author
Shoshana Berleant
committed
fix sometimes-failing test iss 1607, minor pep8
1 parent 81e3ddf commit e864d64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/pipeline/plugins/tests/test_multiproc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _run_interface(self, runtime):
7777

7878
def _list_outputs(self):
7979
outputs = self._outputs().get()
80-
outputs['output1'] = self.inputs.input1
80+
outputs['output1'] = self.inputs.input1
8181
return outputs
8282

8383

@@ -123,7 +123,7 @@ def find_metrics(nodes, last_node):
123123
return total_memory, total_threads
124124

125125

126-
def test_do_not_use_more_memory_then_specified():
126+
def test_no_more_memory_than_specified():
127127
LOG_FILENAME = 'callback.log'
128128
my_logger = logging.getLogger('callback')
129129
my_logger.setLevel(logging.DEBUG)
@@ -151,7 +151,7 @@ def test_do_not_use_more_memory_then_specified():
151151
n1.inputs.input1 = 1
152152

153153
pipe.run(plugin='MultiProc',
154-
plugin_args={'memory': max_memory,
154+
plugin_args={'memory_gb': max_memory,
155155
'status_callback': log_nodes_cb})
156156

157157

@@ -182,7 +182,7 @@ def test_do_not_use_more_memory_then_specified():
182182
os.remove(LOG_FILENAME)
183183

184184
@skipif(nib.runtime_profile == False)
185-
def test_do_not_use_more_threads_then_specified():
185+
def test_no_more_threads_than_specified():
186186
LOG_FILENAME = 'callback.log'
187187
my_logger = logging.getLogger('callback')
188188
my_logger.setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)