diff --git a/python/pyarrow/tests/test_compute.py b/python/pyarrow/tests/test_compute.py index 6fbca520997..edbf96db33a 100644 --- a/python/pyarrow/tests/test_compute.py +++ b/python/pyarrow/tests/test_compute.py @@ -131,6 +131,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(), @@ -210,8 +213,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: