Skip to content

Commit

Permalink
use parse_version
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Sep 12, 2024
1 parent 1bbe18a commit f33c09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/expr_and_series/mode_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest

import narwhals.stable.v1 as nw
from narwhals.utils import parse_version
from tests.utils import compare_dicts

data = {
Expand All @@ -24,7 +25,7 @@ def test_mode_single_expr(constructor: Any, request: Any) -> None:

def test_mode_multi_expr(constructor: Any, request: Any) -> None:
if "dask" in str(constructor) or (
"polars" in str(constructor) and pl.__version__ >= "1.7.0"
"polars" in str(constructor) and parse_version(pl.__version__) >= (1, 7, 0)
):
request.applymarker(pytest.mark.xfail)
df = nw.from_native(constructor(data))
Expand Down

0 comments on commit f33c09b

Please sign in to comment.