]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Avoid TestNullDlsym hanging on HP-PA (#141011)
authorStefano Rivera <stefano@rivera.za.net>
Tue, 27 Jan 2026 11:39:03 +0000 (03:39 -0800)
committerGitHub <noreply@github.com>
Tue, 27 Jan 2026 11:39:03 +0000 (12:39 +0100)
glibc has no support for IFUNC on HP PA RISC yet. Rather than waiting
for an "OK" that we'll never get, skip the test.

See: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/hppa/dl-irel.h;h=770dcb3ea3a6ce232bb11bf59315cfec4c543f93;hb=HEAD

Lib/test/test_ctypes/test_dlerror.py

index 5658234f9ec66bf21f2f943da9772e1edb08e2a2..bb0aec0b3c52488e2711bbc34a99c7b89815f642 100644 (file)
@@ -30,8 +30,9 @@ void *foo(void)
 """
 
 
-@unittest.skipUnless(sys.platform.startswith('linux'),
-                     'test requires GNU IFUNC support')
+@unittest.skipIf(not sys.platform.startswith('linux')
+                 or platform.machine().startswith('parisc'),
+                 '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