Skip to content
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

TST: Simplify and clarify test skipping #56027

Merged
merged 6 commits into from
Nov 17, 2023
Merged

Conversation

mroeschke
Copy link
Member

No description provided.

@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Nov 17, 2023
@@ -80,7 +80,7 @@ def test_setting_backend_without_plot_raises(monkeypatch):
assert pandas.options.plotting.backend == "matplotlib"


@td.skip_if_mpl
@td.skip_if_installed("matplotlib")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any perf impact of evaluating these once vs in a bunch of places?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very slight. e.g. when running test_eval.py with skip_if_no_ne replaced locally I'm getting a runtime of 26.86s on this PR vs 26.69s on main. IMO I think this timing difference is OK given the cleanup

@jbrockmendel
Copy link
Member

One question, otherwise LGTM

@mroeschke mroeschke added this to the 2.2 milestone Nov 17, 2023
@mroeschke mroeschke merged commit 37ae5c4 into pandas-dev:main Nov 17, 2023
40 checks passed
@mroeschke mroeschke deleted the tst/skips branch November 17, 2023 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants