Skip to content

Commit

Permalink
Ignore warning in test_bootstrap_existing_outcomes
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Jan 21, 2025
1 parent 01ecea3 commit 6ffb451
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/estimagic/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ def test_bootstrap_existing_outcomes(setup):
n_draws=2,
)
assert len(result.outcomes) == 2
result = bootstrap(
outcome=_outcome_func,
data=setup["df"],
existing_result=result,
n_draws=1,
)
assert len(result.outcomes) == 1
with pytest.warns(RuntimeWarning):
# As there is only one draw, multiple warnings are raised that can be ignored
result = bootstrap(
outcome=_outcome_func,
data=setup["df"],
existing_result=result,
n_draws=1,
)
assert len(result.outcomes) == 1


def test_bootstrap_from_outcomes(setup, expected):
Expand Down

0 comments on commit 6ffb451

Please sign in to comment.