From 789f5ed76f811258bbef54bdad0c33889ef8490e Mon Sep 17 00:00:00 2001 From: galipremsagar Date: Mon, 4 Nov 2024 17:44:54 +0000 Subject: [PATCH] fix pytest --- python/cudf/cudf_pandas_tests/test_cudf_pandas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/cudf/cudf_pandas_tests/test_cudf_pandas.py b/python/cudf/cudf_pandas_tests/test_cudf_pandas.py index b52f16f9fe3..564ee17ed66 100644 --- a/python/cudf/cudf_pandas_tests/test_cudf_pandas.py +++ b/python/cudf/cudf_pandas_tests/test_cudf_pandas.py @@ -1773,4 +1773,7 @@ def test_fallback_raises_error(monkeypatch): ], ) def test_cudf_pandas_util_version(attrs): - assert hasattr(pd.util, attrs) + if PANDAS_GE_220 and attrs == "capitalize_first_letter": + assert not hasattr(pd.util, attrs) + else: + assert hasattr(pd.util, attrs)