Skip to content

Commit

Permalink
test_cost: use pytest.warns instead of raises for VisibleDeprecationW…
Browse files Browse the repository at this point in the history
…arning
  • Loading branch information
stephanlachnit authored Jul 4, 2023
1 parent f94cec0 commit 0aae3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def test_UnbinnedNLL_visualize(log):
# manual spacing
c.visualize((1, 2), model_points=np.linspace(1, 1000))

with pytest.raises(
with pytest.warns(
np.VisibleDeprecationWarning, match="keyword 'nbins' is deprecated"
):
c.visualize((1, 2), nbins=20)
Expand Down

0 comments on commit 0aae3e2

Please sign in to comment.