Skip to content

ENH: tm.assert_(is|not)_copy, tm.shares_memory #44152

Closed
@jbrockmendel

Description

@jbrockmendel

There are a number of places in the tests where we check that a result is a copy, is not a copy, is a view, is not a view, etc. We end up with ad-hoc implementations all over the place. It'd be nice to have a something like assert not tm.shares_memory(series, series.copy()). This would likely require EA authors to implement parts of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions