Skip to content

Commit

Permalink
Add xfail remark
Browse files Browse the repository at this point in the history
  • Loading branch information
makbigc committed Dec 25, 2018
1 parent 154e279 commit ac94453
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pandas/tests/extension/decimal/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit ac94453

Please sign in to comment.