From b4d5366a562d62b0d8a0c5b326c99c28cc8ea804 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 20 Jan 2025 00:42:00 +0400 Subject: [PATCH] compat --- tests/expr_and_series/concat_str_test.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/expr_and_series/concat_str_test.py b/tests/expr_and_series/concat_str_test.py index 8ae2d817d..e5273aada 100644 --- a/tests/expr_and_series/concat_str_test.py +++ b/tests/expr_and_series/concat_str_test.py @@ -3,6 +3,7 @@ import pytest import narwhals.stable.v1 as nw +from tests.utils import POLARS_VERSION from tests.utils import Constructor from tests.utils import assert_equal_data @@ -21,8 +22,15 @@ ], ) def test_concat_str( - constructor: Constructor, *, ignore_nulls: bool, expected: list[str] + constructor: Constructor, + *, + ignore_nulls: bool, + expected: list[str], + request: pytest.FixtureRequest, ) -> None: + if "polars" in str(constructor) and POLARS_VERSION < (1, 0, 0): + # nth only available after 1.0 + request.applymarker(pytest.mark.xfail) df = nw.from_native(constructor(data)) result = ( df.select(