From a1037fb93cf978378c5748ee8e557a9910134c13 Mon Sep 17 00:00:00 2001 From: ladyyvii Date: Tue, 1 Oct 2019 17:04:48 +0100 Subject: [PATCH] replaced safe_import with a corresponding test decorator --- pandas/tests/io/test_gcs.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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")