def run_many(case): @functools.wraps(case) def wrapped(): for test in range(1000): d, r = case() assert irr.irr(d) == pytest.approx(r) return wrapped