Skip to content

CLN: Use assert_produces_warning instead of pytest.raises to show FutureWarning #56716

Closed
@natmokval

Description

@natmokval

In some places we raise FutureWarning using pytest:

with pytest.raises(FutureWarning, match=msg):

Find and replace it with tm.assert_produces_warning

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions