Skip to content

WARN,TST check stacklevel for all warnings #47919

Closed
@MarcoGorelli

Description

@MarcoGorelli

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testingpandas testing functions or related to the test suiteWarningsWarnings that appear or should be added to pandas

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions