Skip to content

Commit 9bc4012

Browse files
committed
fix macOS tests
1 parent 8618de8 commit 9bc4012

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Lib/test/test_ctypes/test_dlerror.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ def has_gcc():
3838
stderr=subprocess.DEVNULL) == 0
3939

4040

41-
@unittest.skipUnless(hasattr(_ctypes, 'dlopen'),
42-
'test requires _ctypes.dlopen()')
43-
@unittest.skipUnless(hasattr(_ctypes, 'dlsym'),
44-
'test requires _ctypes.dlsym()')
41+
@unittest.skipUnless(sys.platform.startswith('linux'),
42+
'test requires GNU IFUNC support')
4543
class TestNullDlsym(unittest.TestCase):
4644
"""GH-126554: Ensure that we catch NULL dlsym return values
4745

0 commit comments

Comments
 (0)