8000 Avoid TestNullDlsym hanging on HP-PA (#141011) · python/cpython@197e4c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 197e4c0

Browse files
authored
Avoid TestNullDlsym hanging on HP-PA (#141011)
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
1 parent f2b5c20 commit 197e4c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_ctypes/test_dlerror.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
"""
3131

3232

33-
@unittest.skipUnless(sys.platform.startswith('linux'),
34-
'test requires GNU IFUNC support')
33+
@unittest.skipIf(not sys.platform.startswith('linux')
34+
or platform.machine().startswith('parisc'),
35+
'test requires GNU IFUNC support')
3536
@unittest.skipIf(test.support.linked_to_musl(), "Requires glibc")
3637
class TestNullDlsym(unittest.TestCase):
3738
"""GH-126554: Ensure that we catch NULL dlsym return values

0 commit comments

Comments
 (0)
0