diff --git a/pandas/tests/series/test_ufunc.py b/pandas/tests/series/test_ufunc.py index 5faacbb5559a9..797f7bdb1ab7e 100644 --- a/pandas/tests/series/test_ufunc.py +++ b/pandas/tests/series/test_ufunc.py @@ -457,11 +457,12 @@ def add3(x, y, z): ufunc(ser, ser, df) -@pytest.mark.xfail(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 +def test_np_trunc(): + # This used to test np.fix, which is not a ufunc but is composed of + # several ufunc calls under the hood with `out` and `where` keywords. But numpy + # is deprecating that (or at least discussing deprecating) in favor of np.trunc, + # which _is_ a ufunc without the out keyword usage. ser = pd.Series([-1.5, -0.5, 0.5, 1.5]) - result = np.fix(ser) + result = np.trunc(ser) expected = pd.Series([-1.0, -0.0, 0.0, 1.0]) tm.assert_series_equal(result, expected)