From 47bf1bf2fde6a097cd19553f03a01eeebbd8b812 Mon Sep 17 00:00:00 2001 From: makbigc Date: Sun, 23 Dec 2018 15:56:19 +0800 Subject: [PATCH] Add filterwarnings to test_compare_diff_lengths in test_integer.py --- pandas/tests/extension/test_integer.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandas/tests/extension/test_integer.py b/pandas/tests/extension/test_integer.py index e21ca81bcf5c33..7dfeef08d68e48 100644 --- a/pandas/tests/extension/test_integer.py +++ b/pandas/tests/extension/test_integer.py @@ -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