diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index 05d86d2c8aa5b..8313b85d75ca7 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -108,9 +108,7 @@ def mock_get_filepath_or_buffer(*args, **kwargs): assert_frame_equal(df1, df2) -@pytest.mark.skipif( - td.safe_import("gcsfs"), reason="Only check when gcsfs not installed" -) +@td.skip_if_installed("gcsfs") def test_gcs_not_present_exception(): with pytest.raises(ImportError) as e: read_csv("gs://test/test.csv")