def chk():
    fails = 0
    last_ex = None
    for func in funcs:
        try:
            func()
        except Exception as ex:
            fails += 1
            if (fails >= acceptable_fails):
                logger.debug('Too many fails, the last one: {}'.format(repr(ex)))
            last_ex = ex
    assert (fails <= acceptable_fails), '{} out of {} failed. Last exception: {}'.format(fails, len(funcs), last_ex)
def chk():
    fails = 0
    last_ex = None
    for func in funcs:
        try:
            func()
        except Exception as ex:
            fails += 1
            if (fails >= acceptable_fails):
                logger.debug('Too many fails, the last one: {}'.format(repr(ex)))
            last_ex = ex
    assert (fails <= acceptable_fails), '{} out of {} failed. Last exception: {}'.format(fails, len(funcs), last_ex)