8000 TST: return pytest MarkDecorator from td.skip_if_no #26735 by ladyyvii · Pull Request #28731 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: return pytest MarkDecorator from td.skip_if_no #26735 #28731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
replaced safe_import with a corresponding test decorator
  • Loading branch information
ladyyvii committed Oct 1, 2019
commit a1037fb93cf978378c5748ee8e557a9910134c13
4 changes: 1 addition & 3 deletions pandas/tests/io/test_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
0