Skip to content

Commit

Permalink
frexp is still not right on musl
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Nov 9, 2023
1 parent c77ab47 commit 9ea36bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numpy/_core/tests/test_umath.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
assert_, assert_equal, assert_raises, assert_raises_regex,
assert_array_equal, assert_almost_equal, assert_array_almost_equal,
assert_array_max_ulp, assert_allclose, assert_no_warnings, suppress_warnings,
_gen_alignment_data, assert_array_almost_equal_nulp, IS_WASM, IS_PYPY
_gen_alignment_data, assert_array_almost_equal_nulp, IS_WASM, IS_MUSL,
IS_PYPY
)
from numpy.testing._private.utils import _glibc_older_than

Expand Down Expand Up @@ -1888,6 +1889,7 @@ class TestFRExp:
@pytest.mark.parametrize("dtype", ['f', 'd'])
@pytest.mark.skipif(not sys.platform.startswith('linux'),
reason="np.frexp gives different answers for NAN/INF on windows and linux")
@pytest.mark.xfail(IS_MUSL, reason="gh23049")
def test_frexp(self, dtype, stride):
arr = np.array([np.nan, np.nan, np.inf, -np.inf, 0.0, -0.0, 1.0, -1.0], dtype=dtype)
mant_true = np.array([np.nan, np.nan, np.inf, -np.inf, 0.0, -0.0, 0.5, -0.5], dtype=dtype)
Expand Down

0 comments on commit 9ea36bf

Please sign in to comment.