Skip to content

Commit

Permalink
STY/TEST: black and skipif syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies authored and shnizzedy committed Nov 18, 2024
1 parent eb4130f commit 6490708
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nipype/pipeline/plugins/tests/test_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@

try:
import pandas

has_pandas = True
except ImportError:
has_pandas = False


def func():
return

Expand Down Expand Up @@ -68,7 +70,7 @@ def test_callback_exception(tmpdir, plugin, stop_on_first_crash):


@pytest.mark.parametrize("plugin", ["Linear", "MultiProc", "LegacyMultiProc"])
@pytest.mark.skipif(not has_pandas, "Test requires pandas")
@pytest.mark.skipif(not has_pandas, reason="Test requires pandas")
def test_callback_gantt(tmpdir, plugin):
import logging

Expand Down

0 comments on commit 6490708

Please sign in to comment.