def skip_if_lib_missing(libname, text=None):
 soname = ctypes.util.find_library(libname)
 if (not text):
  text = ('lib%s.so' % libname)
 return skipif((not (soname and ctypes.CDLL(soname))), reason=('required %s missing' % text))

def skip_if_lib_missing ( libname , text = None ) : soname = ctypes . util . find_library ( libname ) if ( not text ) : text = ( 'lib%s.so' % libname ) return skipif ( ( not ( soname and ctypes . CDLL ( soname ) ) ) , reason = ( 'required %s missing' % text ) )
pytest decorator to evaluate the required shared lib .