Skip to content

Commit

Permalink
fix: add xfail to median when python<3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanunjaya-Elluri committed Jan 4, 2025
1 parent 4f6c0eb commit ca44572
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/spark_like_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from __future__ import annotations

import sys
from contextlib import nullcontext as does_not_raise
from typing import TYPE_CHECKING
from typing import Any
Expand Down Expand Up @@ -941,6 +942,10 @@ def test_left_join_overlapping_column(pyspark_constructor: Constructor) -> None:
assert_equal_data(result, expected)


@pytest.mark.xfail(
sys.version_info < (3, 9),
reason="median() not supported on Python 3.8",
)
def test_median(pyspark_constructor: Constructor) -> None:
data = {"a": [1, 3, 2, None, float("nan")]}
df = nw.from_native(pyspark_constructor(data))
Expand Down

0 comments on commit ca44572

Please sign in to comment.