From 39e88a4e299d8e0b9eb014ce044d3c9de4d3ee37 Mon Sep 17 00:00:00 2001 From: Brock Date: Fri, 4 Nov 2022 13:14:11 -0700 Subject: [PATCH] construct expected explicitly --- pandas/tests/series/test_logical_ops.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandas/tests/series/test_logical_ops.py b/pandas/tests/series/test_logical_ops.py index c622c3c10e6028..0d661f19087e64 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])