Skip to content

Commit ee22319

Browse files
committed
TST: scope xfail for test_np_fix to non-numpy-dev to avoid XPASS in dev CI; keep change minimal
1 parent 704d990 commit ee22319

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/tests/series/test_ufunc.py

Lines changed: 6 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,10 @@ 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+
)
461466
def test_np_fix():
462467
# np.fix is not a ufunc but is composed of several ufunc calls under the hood
463468
# with `out` and `where` keywords

0 commit comments

Comments
 (0)