File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1111APPLE = sys .platform in {"darwin" , "ios" , "tvos" , "watchos" }
1212
1313if WINDOWS :
14- SYSTEM_LIBRARY = 'KERNEL32.DLL'
14+ KNOWN_LIBRARY = 'KERNEL32.DLL'
1515elif APPLE :
16- SYSTEM_LIBRARY = 'libSystem.B.dylib'
16+ KNOWN_LIBRARY = 'libSystem.B.dylib'
1717else :
18- SYSTEM_LIBRARY = 'libc.so'
18+ # trickier than it seems, because libc may not be present
19+ # on musl systems, and sometimes goes by different names.
20+ # However, ctypes itself loads libffi
21+ KNOWN_LIBRARY = 'libffi.so'
1922
2023class ListSharedLibraries (unittest .TestCase ):
2124
@@ -24,7 +27,7 @@ def test_lists_system(self):
2427
2528 self .assertIsNotNone (dlls )
2629 self .assertGreater (len (dlls ), 0 , f'loaded={ dlls } ' )
27- self .assertTrue (any (SYSTEM_LIBRARY in dll for dll in dlls ), f'loaded={ dlls } ' )
30+ self .assertTrue (any (KNOWN_LIBRARY in dll for dll in dlls ), f'loaded={ dlls } ' )
2831
2932
3033 def test_lists_updates (self ):
You can’t perform that action at this time.
0 commit comments