From ac94453fa2ff34b286adc7ebfdc13dddac5f8761 Mon Sep 17 00:00:00 2001 From: makbigc Date: Tue, 25 Dec 2018 19:30:00 +0800 Subject: [PATCH] Add xfail remark --- .../tests/extension/decimal/test_decimal.py | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py index 5090ff6b3a470..338549b5ee032 100644 --- a/pandas/tests/extension/decimal/test_decimal.py +++ b/pandas/tests/extension/decimal/test_decimal.py @@ -299,11 +299,12 @@ def _check_divmod_op(self, s, op, other, exc=NotImplementedError): def test_error(self): pass - def test_arith_diff_lengths(self): - # TODO - # Raise ValueError when carrying out arithmetic operation - # on two decimal arrays of different lengths - pass + # TODO + # Raise ValueError when carrying out arithmetic operation + # on two decimal arrays of different lengths + @pytest.mark.xfail(reason="raise of ValueError not implemented") + def test_arith_diff_lengths(self, data, all_compare_operators): + super().test_arith_diff_lengths(data, all_compare_operators) class TestComparisonOps(BaseDecimal, base.BaseComparisonOpsTests): @@ -330,10 +331,11 @@ def test_compare_array(self, data, all_compare_operators): for i in alter] self._compare_other(s, data, op_name, other) - def test_compare_diff_lengths(self): - # TODO: - # Raise ValueError when comparing decimal arrays of different lenghts - pass + # TODO: + # Raise ValueError when comparing decimal arrays of different lenghts + @pytest.mark.xfail(reason="raise of ValueError not implemented") + def test_compare_diff_lengths(self, data, all_compare_operators): + super().test_compare_diff_lenths(data, all_compare_operators) class DecimalArrayWithoutFromSequence(DecimalArray):