From 6490708d473bc9880c4a329a17147f59d35af5d5 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 13 Apr 2021 10:34:55 -0400 Subject: [PATCH] STY/TEST: black and skipif syntax --- nipype/pipeline/plugins/tests/test_callback.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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