Skip to content

Commit

Permalink
Add filterwarnings to test_compare_diff_lengths in test_integer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
makbigc committed Dec 23, 2018
1 parent 6571c2e commit 47bf1bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pandas/tests/extension/test_integer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ def check_opname(self, s, op_name, other, exc=None):
def _compare_other(self, s, data, op_name, other):
self.check_opname(s, op_name, other)

@pytest.mark.filterwarnings("ignore:DeprecationWarning")
def test_compare_diff_lengths(self, data, all_compare_operators):
op = self.get_op_from_name(all_compare_operators)
other = data[:3]
with pytest.raises(ValueError):
op(data, other)


class TestInterface(base.BaseInterfaceTests):
pass
Expand Down

0 comments on commit 47bf1bf

Please sign in to comment.