From 2151706f40e2bd92fbe58a460f80e678015eaae8 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Mon, 18 May 2026 22:07:18 +0200 Subject: [PATCH 1/2] [release/26.06] Remove stale import of `deleted assert_collect_raises` PR #22048 ("Bump polars upper bound to <1.40", merged today) added the new `test_hconcat_strict_different_heights` test, which imports `assert_collect_raises`. However, PR #22535 ("Clean up legacy test scaffolding", also merged into `release/26.06`) removed that helper. The two PRs landed on `release/26.06` without the conflict being noticed. On `main`, `test_hconcat.py` does not contain the strict-mode test, so the issue is limited to `release/26.06`. --- python/cudf_polars/tests/test_hconcat.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/python/cudf_polars/tests/test_hconcat.py b/python/cudf_polars/tests/test_hconcat.py index 298d63534f7..59f3c5d7044 100644 --- a/python/cudf_polars/tests/test_hconcat.py +++ b/python/cudf_polars/tests/test_hconcat.py @@ -8,7 +8,7 @@ from cudf_polars.containers import DataType from cudf_polars.dsl.ir import DataFrameScan, Empty, HConcat, IRExecutionContext -from cudf_polars.testing.asserts import assert_collect_raises, assert_gpu_result_equal +from cudf_polars.testing.asserts import assert_gpu_result_equal from cudf_polars.utils.versions import POLARS_VERSION_LT_139 @@ -38,11 +38,10 @@ def test_hconcat_strict_different_heights(): left = pl.LazyFrame({"a": [1, 2, 3]}) right = pl.LazyFrame({"b": [4, 5]}) q = pl.concat([left, right], how="horizontal", strict=True) - assert_collect_raises( - q, - polars_except=pl.exceptions.ShapeError, - cudf_except=pl.exceptions.ShapeError, - ) + with pytest.raises(pl.exceptions.ShapeError): + q.collect() + with pytest.raises(pl.exceptions.ShapeError): + q.collect(engine=pl.GPUEngine(raise_on_fail=True)) def test_hconcat_should_broadcast(): From 0b189cddb461f7e49f6fa5c785e8c484032df4b1 Mon Sep 17 00:00:00 2001 From: "Mads R. B. Kristensen" Date: Mon, 18 May 2026 23:22:02 +0200 Subject: [PATCH 2/2] use executor="in-memory" --- python/cudf_polars/tests/test_hconcat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cudf_polars/tests/test_hconcat.py b/python/cudf_polars/tests/test_hconcat.py index 59f3c5d7044..25c277dc268 100644 --- a/python/cudf_polars/tests/test_hconcat.py +++ b/python/cudf_polars/tests/test_hconcat.py @@ -41,7 +41,7 @@ def test_hconcat_strict_different_heights(): with pytest.raises(pl.exceptions.ShapeError): q.collect() with pytest.raises(pl.exceptions.ShapeError): - q.collect(engine=pl.GPUEngine(raise_on_fail=True)) + q.collect(engine=pl.GPUEngine(executor="in-memory", raise_on_fail=True)) def test_hconcat_should_broadcast():