3 Roger E. Masse revised strategy by Barry Warsaw
5 from test
.test_support
import verbose
, import_module
6 dl
= import_module('dl', deprecated
=True)
9 ('/usr/lib/libc.so', 'getpid'),
10 ('/lib/libc.so.6', 'getpid'),
11 ('/usr/bin/cygwin1.dll', 'getpid'),
12 ('/usr/lib/libc.dylib', 'getpid'),
16 for s
, func
in sharedlibs
:
19 print 'trying to open:', s
,
23 print 'failed', repr(str(err
))
34 raise unittest
.SkipTest
, 'Could not open any shared libraries'
37 if __name__
== '__main__':