Skip to content

Commit 39e88a4

Browse files
committed
construct expected explicitly
1 parent bb2875d commit 39e88a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/series/test_logical_ops.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,10 @@ def test_reversed_xor_with_index_returns_series(self):
272272
) # TODO: raises if bool-dtype
273273
idx2 = Index([1, 0, 1, 0])
274274

275-
expected = ser ^ idx1.values
275+
expected = Series([False, True, True, False])
276276
result = idx1 ^ ser
277277
tm.assert_series_equal(result, expected)
278278

279-
expected = ser ^ idx2.values
280279
result = idx2 ^ ser
281280
tm.assert_series_equal(result, expected)
282281

@@ -312,7 +311,7 @@ def test_reversed_logical_op_with_index_returns_series(self, op):
312311
def test_reverse_ops_with_index(self, op, expected):
313312
# https://github.com/pandas-dev/pandas/pull/23628
314313
# multi-set Index ops are buggy, so let's avoid duplicates...
315-
# GH#...
314+
# GH#49503
316315
ser = Series([True, False])
317316
idx = Index([False, True])
318317

0 commit comments

Comments
 (0)