File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-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- KNOWN_LIBRARY = 'KERNEL32.DLL'
14+ KNOWN_LIBRARIES = [ 'KERNEL32.DLL' ]
1515elif APPLE :
16- KNOWN_LIBRARY = 'libSystem.B.dylib'
16+ KNOWN_LIBRARIES = [ 'libSystem.B.dylib' ]
1717else :
1818 # trickier than it seems, because libc may not be present
1919 # on musl systems, and sometimes goes by different names.
2020 # However, ctypes itself loads libffi
21- KNOWN_LIBRARY = ' libffi.so'
21+ KNOWN_LIBRARIES = [ 'libc.so' , ' libffi.so']
2222
2323class ListSharedLibraries (unittest .TestCase ):
2424
@@ -27,7 +27,7 @@ def test_lists_system(self):
2727
2828 self .assertIsNotNone (dlls )
2929 self .assertGreater (len (dlls ), 0 , f'loaded={ dlls } ' )
30- self .assertTrue (any (KNOWN_LIBRARY in dll for dll in dlls ), f'loaded={ dlls } ' )
30+ self .assertTrue (any (lib in dll for dll in dlls for lib in KNOWN_LIBRARIES ), f'loaded={ dlls } ' )
3131
3232
3333 def test_lists_updates (self ):
You can’t perform that action at this time.
0 commit comments