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