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 @@ -72,7 +72,7 @@ def test_callback_gantt(tmpdir, plugin):
72
72
from nipype .utils .profiler import log_nodes_cb
73
73
from nipype .utils .draw_gantt_chart import generate_gantt_chart
74
74
75
- log_filename = "callback.log"
75
+ log_filename = path . join ( tmpdir , "callback.log" )
76
76
logger = logging .getLogger ("callback" )
77
77
logger .setLevel (logging .DEBUG )
78
78
handler = logging .FileHandler (log_filename )
@@ -91,5 +91,7 @@ def test_callback_gantt(tmpdir, plugin):
91
91
plugin_args ["n_procs" ] = 8
92
92
wf .run (plugin = plugin , plugin_args = plugin_args )
93
93
94
- generate_gantt_chart ("callback.log" , 1 if plugin == "Linear" else 8 )
95
- assert path .exists ("callback.log.html" )
94
+ generate_gantt_chart (
95
+ path .join (tmpdir , "callback.log" ), 1 if plugin == "Linear" else 8
96
+ )
97
+ assert path .exists (path .join (tmpdir , "callback.log.html" ))
You can’t perform that action at this time.
0 commit comments