Skip to content

TST: Address test warnings #48075

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 7 commits into from
Aug 19, 2022
Merged

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Aug 14, 2022

The goal is to enable pytest -W error:::pandas to raise potential errors in our test suite due to warnings pandas issues

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas labels Aug 14, 2022
@mroeschke mroeschke added this to the 1.5 milestone Aug 15, 2022
@@ -202,6 +202,7 @@ def func_kwargs(values, index):


@td.skip_if_no("numba")
@pytest.mark.filterwarnings("ignore")
Copy link
Member

Choose a reason for hiding this comment

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

can we just ignore numba-produced warnings?

Copy link
Member Author

@mroeschke mroeschke Aug 16, 2022

Choose a reason for hiding this comment

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

Yeah the NumbaPerformanceWarning are safe to ignore. Unfortunately I don't think specifying a "ignore::numba.NumbaPerformanceWarning" can be put in the pyproject.toml because not all builds have numba installed.

@jreback jreback merged commit 8c2d327 into pandas-dev:main Aug 19, 2022
@mroeschke mroeschke deleted the fix/test/warnings branch August 19, 2022 21:41
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
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 Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants