Skip to content

Commit 583f265

Browse files
committed
TST: condition xfail for test_np_fix to skip on numpy-dev to avoid XPASS(strict) in dev CI
1 parent b970007 commit 583f265

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/tests/series/test_ufunc.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import numpy as np
66
import pytest
77

8+
from pandas.compat.numpy import is_numpy_dev
9+
810
import pandas as pd
911
import pandas._testing as tm
1012
from pandas.arrays import SparseArray
@@ -457,7 +459,11 @@ def add3(x, y, z):
457459
ufunc(ser, ser, df)
458460

459461

460-
@pytest.mark.xfail(reason="see https://github.com/pandas-dev/pandas/pull/51082")
462+
@pytest.mark.xfail(
463+
condition=not is_numpy_dev,
464+
reason="see https://github.com/pandas-dev/pandas/pull/51082",
465+
strict=True,
466+
)
461467
def test_np_fix():
462468
# np.fix is not a ufunc but is composed of several ufunc calls under the hood
463469
# with `out` and `where` keywords

0 commit comments

Comments
 (0)