Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fa65caf

Browse files
✅ Use tmpdir for Gantt test
1 parent f982076 commit fa65caf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎nipype/pipeline/plugins/tests/test_callback.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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"))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /