Skip to content

WARN,TST check stacklevel for all warnings #47919

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

Closed
MarcoGorelli opened this issue Aug 1, 2022 · 0 comments · Fixed by #47998
Closed

WARN,TST check stacklevel for all warnings #47919

MarcoGorelli opened this issue Aug 1, 2022 · 0 comments · Fixed by #47998
Labels
Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas

Comments

@MarcoGorelli
Copy link
Member

Currently, the stacklevel is only checked for two classes of warnings:

if check_stacklevel and issubclass(
actual_warning.category, (FutureWarning, DeprecationWarning)
):

it would be good to extend this to other (all?) classes of warnings, and fixing the parts of the codebase where this fails

@MarcoGorelli MarcoGorelli added the Warnings Warnings that appear or should be added to pandas label Aug 1, 2022
@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Aug 1, 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
2 participants