[3.13] gh-131032: Add support.linked_to_musl() function (#131071) (#131179)

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.

(cherry picked from commit 68922ace4d)
This commit is contained in:
Victor Stinner 2025-03-13 10:59:57 +01:00 committed by GitHub
parent 589382bd04
commit 050813c026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 2 deletions

View file

@ -733,6 +733,10 @@ class TestSupport(unittest.TestCase):
self.assertEqual(support.copy_python_src_ignore(path, os.listdir(path)),
ignored)
def test_linked_to_musl(self):
linked = support.linked_to_musl()
self.assertIsInstance(linked, bool)
# XXX -follows a list of untested API
# make_legacy_pyc
# is_resource_enabled