File tree 1 file changed +5
-3
lines changed
nipype/pipeline/plugins/tests
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):
73
73
from nipype .utils .profiler import log_nodes_cb
74
74
from nipype .utils .draw_gantt_chart import generate_gantt_chart
75
75
76
- log_filename = "callback.log"
76
+ log_filename = path . join ( tmpdir , "callback.log" )
77
77
logger = logging .getLogger ("callback" )
78
78
logger .setLevel (logging .DEBUG )
79
79
handler = logging .FileHandler (log_filename )
@@ -92,5 +92,7 @@ def test_callback_gantt(tmpdir, plugin):
92
92
plugin_args ["n_procs" ] = 8
93
93
wf .run (plugin = plugin , plugin_args = plugin_args )
94
94
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