From 1b5cb1a65e04409a84956d635e8a778e0d92be83 Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 16 Sep 2024 08:54:37 -0700 Subject: [PATCH] skip test_groupby_literal_in_agg if polars>=1.7.1 --- python/cudf_polars/tests/test_groupby.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python/cudf_polars/tests/test_groupby.py b/python/cudf_polars/tests/test_groupby.py index 6f996e0e0ec..68ee118c701 100644 --- a/python/cudf_polars/tests/test_groupby.py +++ b/python/cudf_polars/tests/test_groupby.py @@ -5,6 +5,7 @@ import itertools import pytest +from packaging import version import polars as pl @@ -168,7 +169,13 @@ def test_groupby_nan_minmax_raises(op): "expr", [ pl.lit(1).alias("value"), - pl.lit([[4, 5, 6]]).alias("value"), + pytest.param( + pl.lit([[4, 5, 6]]).alias("value"), + marks=pytest.mark.xfail( + condition=version.parse(pl.__version__) >= version.parse("1.7.1"), + reason="Broken in polars 1.7.1", + ), + ), pl.col("float") * (1 - pl.col("int")), [pl.lit(2).alias("value"), pl.col("float") * 2], ],