Skip to content

Commit b808778

Browse files
committed
remove xfails on frame arithmetic ops comparisons
1 parent b543386 commit b808778

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/arrays/test_integer.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ def _check_op(self, s, op_name, other, exc=None):
114114
# compute expected
115115
mask = s.isna()
116116

117+
# if s is a DataFrame, squeeze to a Series
118+
# for comparison
119+
if isinstance(s, pd.DataFrame):
120+
result = result.squeeze()
121+
s = s.squeeze()
122+
mask = mask.squeeze()
123+
117124
# other array is an Integer
118125
if isinstance(other, IntegerArray):
119126
omask = getattr(other, 'mask', None)
@@ -215,7 +222,6 @@ def test_arith_series_with_scalar(self, data, all_arithmetic_operators):
215222
s = pd.Series(data)
216223
self._check_op(s, op, 1, exc=TypeError)
217224

218-
@pytest.mark.xfail(run=False, reason="_reduce needs implementation")
219225
def test_arith_frame_with_scalar(self, data, all_arithmetic_operators):
220226
# frame & scalar
221227
op = all_arithmetic_operators

0 commit comments

Comments
 (0)