From c49bb6d24a5dcc90274f18b182ab5ef5e6774147 Mon Sep 17 00:00:00 2001 From: Zachary Ware Date: Sat, 6 Sep 2025 14:01:18 -0500 Subject: [PATCH] gh-90548: Skip ctypes test_null_dlsym when linked to musl (GH-138592) The test relies on glibc-specific behavior. (cherry picked from commit 7d58461fdb02915aa1c93cba8e8e10201bd47696) Co-authored-by: Zachary Ware --- Lib/test/test_ctypes/test_dlerror.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_ctypes/test_dlerror.py b/Lib/test/test_ctypes/test_dlerror.py index 8af34e62b94faa..5658234f9ec66b 100644 --- a/Lib/test/test_ctypes/test_dlerror.py +++ b/Lib/test/test_ctypes/test_dlerror.py @@ -32,6 +32,7 @@ @unittest.skipUnless(sys.platform.startswith('linux'), 'test requires GNU IFUNC support') +@unittest.skipIf(test.support.linked_to_musl(), "Requires glibc") class TestNullDlsym(unittest.TestCase): """GH-126554: Ensure that we catch NULL dlsym return values