diff --git a/nipype/pipeline/plugins/tests/test_callback.py b/nipype/pipeline/plugins/tests/test_callback.py index 66526c76c4..af6cbc76a1 100644 --- a/nipype/pipeline/plugins/tests/test_callback.py +++ b/nipype/pipeline/plugins/tests/test_callback.py @@ -9,10 +9,12 @@ try: import pandas + has_pandas = True except ImportError: has_pandas = False + def func(): return @@ -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