def retry_before_failing(retries=NO_RETRIES):
 return retry(exception=AssertionError, timeout=None, retries=retries)

def retry_before_failing ( retries = NO_RETRIES ) : return retry ( exception = AssertionError , timeout = None , retries = retries )
decorator which runs a test function and retries n times before actually failing .