Skip to content

Commit

Permalink
Account for method-related warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mkcor committed Mar 21, 2024
1 parent 79acf77 commit 9b9f757
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skimage/util/tests/test_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def test_compare_images_ValueError_shape():
def test_compare_images_ValueError_args():
a = np.ones((10, 10)) * 3
b = np.zeros((10, 10))
with pytest.raises(ValueError):
compare_images(a, b, "unknown")
with pytest.warns(FutureWarning):
with pytest.raises(ValueError):
compare_images(a, b, "unknown")


def test_compare_images_diff():
Expand Down

0 comments on commit 9b9f757

Please sign in to comment.