From ee2231913f0ac449c1b209395b82418df8f140af Mon Sep 17 00:00:00 2001 From: antznette1 Date: Thu, 13 Nov 2025 22:29:45 +0100 Subject: [PATCH] TST: scope xfail for test_np_fix to non-numpy-dev to avoid XPASS in dev CI; keep change minimal --- pandas/tests/series/test_ufunc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py index 5faacbb5559a9..d64a5caaa1d61 100644 --- a/pandas/tests/series/test_ufunc.py +++ b/pandas/tests/series/test_ufunc.py @@ -5,6 +5,8 @@ import numpy as np import pytest +from pandas.compat.numpy import is_numpy_dev + import pandas as pd import pandas._testing as tm from pandas.arrays import SparseArray @@ -457,7 +459,10 @@ def add3(x, y, z): ufunc(ser, ser, df) -@pytest.mark.xfail(reason="see https://github.com/pandas-dev/pandas/pull/51082") +@pytest.mark.xfail( + condition=not is_numpy_dev, + reason="see https://github.com/pandas-dev/pandas/pull/51082", +) def test_np_fix(): # np.fix is not a ufunc but is composed of several ufunc calls under the hood # with `out` and `where` keywords