summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2025-03-13 09:33:46 (GMT)
committerGitHub <noreply@github.com>2025-03-13 09:33:46 (GMT)
commit68922ace4dabb6635e6d5b51bbe6485ef2e9dad2 (patch)
treee8c8645b13f5505783d9218062bd6b15ca5d44a0 /Lib/test/test_math.py
parent2ed671b5e3a64183ed2af220dd37c6b5182f52d3 (diff)
downloadcpython-68922ace4dabb6635e6d5b51bbe6485ef2e9dad2.zip
cpython-68922ace4dabb6635e6d5b51bbe6485ef2e9dad2.tar.gz
cpython-68922ace4dabb6635e6d5b51bbe6485ef2e9dad2.tar.bz2
gh-131032: Add support.linked_to_musl() function (#131071)
Skip test_math.test_fma_zero_result() if Python is linked to the musl C library.
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r--Lib/test/test_math.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index ba94a29..2649be8 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -2769,7 +2769,8 @@ class FMATests(unittest.TestCase):
# properly: it doesn't use the right sign when the result is zero.
@unittest.skipIf(
sys.platform.startswith(("freebsd", "wasi", "netbsd", "emscripten"))
- or (sys.platform == "android" and platform.machine() == "x86_64"),
+ or (sys.platform == "android" and platform.machine() == "x86_64")
+ or support.linked_to_musl(), # gh-131032
f"this platform doesn't implement IEE 754-2008 properly")
def test_fma_zero_result(self):
nonnegative_finites = [0.0, 1e-300, 2.3, 1e300]