[3.15] gh-152563, test_math: Enable fma test on musl 1.2.6 (GH-152564) (#155755)

hugovk <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/7533d8ac643cdc151c083cfe53824e74bdb31bc0
commit: 7533d8ac643cdc151c083cfe53824e74bdb31bc0
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-14T17:44:37+09:00
summary:

[3.15] gh-152563, test_math: Enable fma test on musl 1.2.6 (GH-152564) (#155755)

gh-152563, test_math: Enable fma test on musl 1.2.6 (GH-152564)
(cherry picked from commit 5ea393501e308586a689acab6d78ff74b365045b)

Co-authored-by: Xiaowei Lu <[email protected]>

files:
M Lib/test/test_math.py

diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 8f9a239bead130..1a470a7aecbd95 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -2687,11 +2687,8 @@ def test_fma_infinities(self):
     @unittest.skipIf(
         sys.platform.startswith(("freebsd", "wasi", "netbsd", "emscripten"))
         or (sys.platform == "android" and platform.machine() == "x86_64")
-        or support.linked_to_musl(),  # gh-131032
+        or (support.linked_to_musl() and support.linked_to_musl() < (1, 2, 6)),  # gh-131032
         f"this platform doesn't implement IEE 754-2008 properly")
-    # gh-131032: musl is fixed but the fix is not yet released; when the fixed
-    # version is known change this to:
-    #   or support.linked_to_musl() < (1, <m>, <p>)
     def test_fma_zero_result(self):
         nonnegative_finites = [0.0, 1e-300, 2.3, 1e300]
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.