-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Use more pytest.importorskip #54377
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
Conversation
mroeschke
commented
Aug 2, 2023
- Tests added and passed if fixing a bug or adding a new feature
- All code checks passed.
@pytest.mark.filterwarnings("ignore") | ||
# Filter warnings when parallel=True and the function can't be parallelized by Numba | ||
@pytest.mark.parametrize("jit", [True, False]) | ||
@pytest.mark.parametrize("pandas_obj", ["Series", "DataFrame"]) | ||
def test_cache(jit, pandas_obj, nogil, parallel, nopython): | ||
# Test that the functions are cached correctly if we switch functions | ||
pytest.importorskip("numba") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this change the collection/running performance of the test suite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Collection locally I'm getting 35.19s on main vs 34.13s on the PR so negligible. Based on the job runtimes doesn't seem noticeably different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking