def skip_unless_importable(module, msg=None):
 try:
  __import__(module)
 except ImportError:
  return skip_if(True, msg)
 else:
  return skip_if(False, msg)

def skip_unless_importable ( module , msg = None ) : try : __import__ ( module ) except ImportError : return skip_if ( True , msg ) else : return skip_if ( False , msg )
decorator to skip test if module is not importable .