Skip to content

Commit 83c619f

Browse files
committed
Add filterwarnings to test_compare_diff_lengths in test_integer.py
1 parent 2892ee3 commit 83c619f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/extension/test_integer.py

+7
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ def check_opname(self, s, op_name, other, exc=None):
153153
def _compare_other(self, s, data, op_name, other):
154154
self.check_opname(s, op_name, other)
155155

156+
@pytest.mark.filterwarnings("ignore:DeprecationWarning")
157+
def test_compare_diff_lengths(self, data, all_compare_operators):
158+
op = self.get_op_from_name(all_compare_operators)
159+
other = data[:3]
160+
with pytest.raises(ValueError):
161+
op(data, other)
162+
156163

157164
class TestInterface(base.BaseInterfaceTests):
158165
pass

0 commit comments

Comments
 (0)