From ee2231913f0ac449c1b209395b82418df8f140af Mon Sep 17 00:00:00 2001 From: antznette1 Date: Thu, 13 Nov 2025 22:29:45 +0100 Subject: [PATCH 1/2] 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 From 34b34f6f4b41748b4d0b80b029f00d5fe1fafcc0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 15 Nov 2025 20:59:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pandas/tests/series/test_ufunc.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py index f2a7cd6513b13..797f7bdb1ab7e 100644 --- a/pandas/tests/series/test_ufunc.py +++ b/pandas/tests/series/test_ufunc.py @@ -5,8 +5,6 @@ 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