diff --git a/pandas/tests/series/test_logical_ops.py b/pandas/tests/series/test_logical_ops.py index c622c3c10e602..0d661f19087e6 100644 --- a/pandas/tests/series/test_logical_ops.py +++ b/pandas/tests/series/test_logical_ops.py @@ -272,11 +272,10 @@ def test_reversed_xor_with_index_returns_series(self): ) # TODO: raises if bool-dtype idx2 = Index([1, 0, 1, 0]) - expected = ser ^ idx1.values + expected = Series([False, True, True, False]) result = idx1 ^ ser tm.assert_series_equal(result, expected) - expected = ser ^ idx2.values result = idx2 ^ ser tm.assert_series_equal(result, expected) @@ -312,7 +311,7 @@ def test_reversed_logical_op_with_index_returns_series(self, op): def test_reverse_ops_with_index(self, op, expected): # https://github.com/pandas-dev/pandas/pull/23628 # multi-set Index ops are buggy, so let's avoid duplicates... - # GH#... + # GH#49503 ser = Series([True, False]) idx = Index([False, True])