def doNotFailOnNetworkError(func):
 @functools.wraps(func)
 def wrapper(*a, **kw):
  try:
   func(*a, **kw)
  except FailTest as e:
   if e.args[0].startswith("'Failed to get object inventory from "):
    raise SkipTest('This test is prone to intermittent network errors. See ticket 8753. Exception was: {!r}'.format(e))
   raise
 return wrapper

def doNotFailOnNetworkError ( func ) : @ functools . wraps ( func ) def wrapper ( * a , ** kw ) : try : func ( * a , ** kw ) except FailTest as e : if e . args [ 0 ] . startswith ( "'Failed to get object inventory from " ) : raise SkipTest ( 'This test is prone to intermittent network errors. See ticket 8753. Exception was: {!r}' . format ( e ) ) raise return wrapper
a decorator which makes apibuilder tests not fail because of intermittent network failures -- mamely .