Skip to content

Commit

Permalink
construct expected explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Nov 4, 2022
1 parent bb2875d commit 39e88a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pandas/tests/series/test_logical_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 39e88a4

Please sign in to comment.