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.
This commit is contained in:
Victor Stinner 2025-03-13 10:33:46 +01:00 committed by GitHub
parent 2ed671b5e3
commit 68922ace4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 1 deletions

View file

@ -744,6 +744,10 @@ class TestSupport(unittest.TestCase):
self.assertEqual(support.get_signal_name(exitcode), expected,
exitcode)
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