Skip to content

Commit

Permalink
version the pytest xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Nov 15, 2024
1 parent 86f3150 commit 0a0a3bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/cudf/cudf/core/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@


PANDAS_GE_210 = PANDAS_VERSION >= version.parse("2.1.0")
PANDAS_GT_214 = PANDAS_VERSION > version.parse("2.1.4")
PANDAS_GE_220 = PANDAS_VERSION >= version.parse("2.2.0")
PANDAS_LT_300 = PANDAS_VERSION < version.parse("3.0.0")
4 changes: 3 additions & 1 deletion python/cudf/cudf/tests/test_replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from cudf.core._compat import (
PANDAS_CURRENT_SUPPORTED_VERSION,
PANDAS_GE_220,
PANDAS_GT_214,
PANDAS_VERSION,
)
from cudf.core.dtypes import Decimal32Dtype, Decimal64Dtype, Decimal128Dtype
Expand Down Expand Up @@ -974,7 +975,8 @@ def test_series_multiple_times_with_nulls():
def test_numeric_series_replace_dtype(request, series_dtype, replacement):
request.applymarker(
pytest.mark.xfail(
condition=(
condition=PANDAS_GT_214
and (
(
series_dtype == "int8"
and replacement in {128, 128.0, 32769, 32769.0}
Expand Down

0 comments on commit 0a0a3bf

Please sign in to comment.