diff --git a/pandas/tests/arithmetic/test_interval.py b/pandas/tests/arithmetic/test_interval.py index 66526204a6208..50b5fe8e6f6b9 100644 --- a/pandas/tests/arithmetic/test_interval.py +++ b/pandas/tests/arithmetic/test_interval.py @@ -284,3 +284,11 @@ def test_index_series_compat(self, op, constructor, expected_type, assert_func): result = op(index, other) expected = expected_type(self.elementwise_comparison(op, index, other)) assert_func(result, expected) + + @pytest.mark.parametrize("scalars", ["a", False, 1, 1.0, None]) + def test_comparison_operations(self, scalars): + # GH #28981 + expected = Series([False, False]) + s = pd.Series([pd.Interval(0, 1), pd.Interval(1, 2)], dtype="interval") + result = s == scalars + tm.assert_series_equal(result, expected)