def no_skip_on_missing_deps(wrapped):
 @functools.wraps(wrapped)
 def wrapper(*args, **kwargs):
  try:
   return wrapped(*args, **kwargs)
  except (testtools.TestCase.skipException, unittest2.case.SkipTest) as e:
   if base.bool_from_env('OS_FAIL_ON_MISSING_DEPS'):
    tools.fail(('%s cannot be skipped because OS_FAIL_ON_MISSING_DEPS is enabled, skip reason: %s' % (wrapped.__name__, e)))
   raise
 return wrapper

def no_skip_on_missing_deps ( wrapped ) : @ functools . wraps ( wrapped ) def wrapper ( * args , ** kwargs ) : try : return wrapped ( * args , ** kwargs ) except ( testtools . TestCase . skipException , unittest2 . case . SkipTest ) as e : if base . bool_from_env ( 'OS_FAIL_ON_MISSING_DEPS' ) : tools . fail ( ( '%s cannot be skipped because OS_FAIL_ON_MISSING_DEPS is enabled, skip reason: %s' % ( wrapped . __name__ , e ) ) ) raise return wrapper
do not allow a method/test to skip on missing dependencies .