Skip to content

BUG: Missing assert in test_interval_new.py in test_loc_with_overlap #55557

Closed
@Sjord

Description

@Sjord

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

In pandas/pandas/tests/indexing/interval/test_interval_new.py at 746e5eee860b6e143c33c9b985e095dac2e42677 · pandas-dev/pandas

        # interval
        expected = 0
        result = indexer_sl(ser)[Interval(1, 5)]
        result == expected

The final line, result == expected should probably be assert result == expected or tm.assert_series_equal(expected, result).

Issue Description

Values are compared in the unit tests, but the result of the comparison is discarded instead of asserted.

Expected Behavior

An assertion

Installed Versions

v2.2.0.dev0-383-g746e5eee86

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions