Skip to content

Commit e9487b4

Browse files
ladyyviisimonjayhawkins
authored andcommitted
replaced safe_import with a corresponding test decorator (#28731)
1 parent 411dd24 commit e9487b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/io/test_gcs.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def mock_get_filepath_or_buffer(*args, **kwargs):
108108
assert_frame_equal(df1, df2)
109109

110110

111-
@pytest.mark.skipif(
112-
td.safe_import("gcsfs"), reason="Only check when gcsfs not installed"
113-
)
111+
@td.skip_if_installed("gcsfs")
114112
def test_gcs_not_present_exception():
115113
with pytest.raises(ImportError) as e:
116114
read_csv("gs://test/test.csv")

0 commit comments

Comments
 (0)