File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
nipype/pipeline/plugins/tests Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def test_callback_gantt(tmpdir, plugin):
7373 from nipype .utils .profiler import log_nodes_cb
7474 from nipype .utils .draw_gantt_chart import generate_gantt_chart
7575
76- log_filename = "callback.log"
76+ log_filename = path . join ( tmpdir , "callback.log" )
7777 logger = logging .getLogger ("callback" )
7878 logger .setLevel (logging .DEBUG )
7979 handler = logging .FileHandler (log_filename )
@@ -92,5 +92,7 @@ def test_callback_gantt(tmpdir, plugin):
9292 plugin_args ["n_procs" ] = 8
9393 wf .run (plugin = plugin , plugin_args = plugin_args )
9494
95- generate_gantt_chart ("callback.log" , 1 if plugin == "Linear" else 8 )
96- assert path .exists ("callback.log.html" )
95+ generate_gantt_chart (
96+ path .join (tmpdir , "callback.log" ), 1 if plugin == "Linear" else 8
97+ )
98+ assert path .exists (path .join (tmpdir , "callback.log.html" ))
You can’t perform that action at this time.
0 commit comments