Skip to content

CLN: test_intersect_str_dates appears to have been mistakenly placed in tests/indexes/test_range.py #17362

Closed
@jschendel

Description

@jschendel

Code Sample, a copy-pastable example if possible

def test_intersect_str_dates(self):
dt_dates = [datetime(2012, 2, 9), datetime(2012, 2, 22)]
i1 = Index(dt_dates, dtype=object)
i2 = Index(['aa'], dtype=object)
res = i2.intersection(i1)
assert len(res) == 0

Problem description

The test_intersect_str_dates test within tests/indexes/test_range.py doesn't appear to have anything to do with RangeIndex. It seems like this should be moved to tests/indexes/test_base.py? Happy to submit a PR if this is the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CleanTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions