gh-131032: Add support.linked_to_musl() function (#131071) · python/cpython@68922ac

Original file line numberDiff line numberDiff line change

@@ -2769,7 +2769,8 @@ def test_fma_infinities(self):

27692769

# properly: it doesn't use the right sign when the result is zero.

27702770

@unittest.skipIf(

27712771

sys.platform.startswith(("freebsd", "wasi", "netbsd", "emscripten"))

2772-

or (sys.platform == "android" and platform.machine() == "x86_64"),

2772+

or (sys.platform == "android" and platform.machine() == "x86_64")

2773+

or support.linked_to_musl(), # gh-131032

27732774

f"this platform doesn't implement IEE 754-2008 properly")

27742775

def test_fma_zero_result(self):

27752776

nonnegative_finites = [0.0, 1e-300, 2.3, 1e300]