From 3cf5c092f334a6c56f7666d8106e22b11112ab99 Mon Sep 17 00:00:00 2001 From: AlenkaF Date: Tue, 22 Aug 2023 13:56:23 +0200 Subject: [PATCH] Add filterwarnings mark for test_option_class_equality --- python/pyarrow/tests/test_compute.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: