diff --git a/python/pyarrow/tests/test_compute.py b/python/pyarrow/tests/test_compute.py index 03d2688e65705..6ee54ca4b1259 100644 --- a/python/pyarrow/tests/test_compute.py +++ b/python/pyarrow/tests/test_compute.py @@ -135,6 +135,9 @@ def test_exported_option_classes(): param.VAR_KEYWORD) +@pytest.mark.filterwarnings( + "ignore:pyarrow.CumulativeSumOptions is deprecated as of 14.0" +) def test_option_class_equality(): options = [ pc.ArraySortOptions(), @@ -214,8 +217,8 @@ def test_option_class_equality(): buf = option.serialize() deserialized = pc.FunctionOptions.deserialize(buf) assert option == deserialized - # TODO remove the check under the if statement - # when the deprecated class CumulativeSumOptions is removed. + # TODO remove the check under the if statement and the filterwarnings + # mark when the deprecated class CumulativeSumOptions is removed. if repr(option).startswith("CumulativeSumOptions"): assert repr(deserialized).startswith("CumulativeOptions") else: