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