Skip to content

Commit ac94453

Browse files
committed
Add xfail remark
1 parent 154e279 commit ac94453

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pandas/tests/extension/decimal/test_decimal.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,12 @@ def _check_divmod_op(self, s, op, other, exc=NotImplementedError):
299299
def test_error(self):
300300
pass
301301

302-
def test_arith_diff_lengths(self):
303-
# TODO
304-
# Raise ValueError when carrying out arithmetic operation
305-
# on two decimal arrays of different lengths
306-
pass
302+
# TODO
303+
# Raise ValueError when carrying out arithmetic operation
304+
# on two decimal arrays of different lengths
305+
@pytest.mark.xfail(reason="raise of ValueError not implemented")
306+
def test_arith_diff_lengths(self, data, all_compare_operators):
307+
super().test_arith_diff_lengths(data, all_compare_operators)
307308

308309

309310
class TestComparisonOps(BaseDecimal, base.BaseComparisonOpsTests):
@@ -330,10 +331,11 @@ def test_compare_array(self, data, all_compare_operators):
330331
for i in alter]
331332
self._compare_other(s, data, op_name, other)
332333

333-
def test_compare_diff_lengths(self):
334-
# TODO:
335-
# Raise ValueError when comparing decimal arrays of different lenghts
336-
pass
334+
# TODO:
335+
# Raise ValueError when comparing decimal arrays of different lenghts
336+
@pytest.mark.xfail(reason="raise of ValueError not implemented")
337+
def test_compare_diff_lengths(self, data, all_compare_operators):
338+
super().test_compare_diff_lenths(data, all_compare_operators)
337339

338340

339341
class DecimalArrayWithoutFromSequence(DecimalArray):

0 commit comments

Comments
 (0)