diff --git a/skimage/morphology/tests/test_convex_hull.py b/skimage/morphology/tests/test_convex_hull.py index 67d77a31..075762ed 100644 --- a/skimage/morphology/tests/test_convex_hull.py +++ b/skimage/morphology/tests/test_convex_hull.py @@ -1,5 +1,5 @@ import numpy as np -from numpy.testing import assert_array_equal +from numpy.testing import assert_array_equal, assert_raises from numpy.testing.decorators import skipif from skimage.morphology import convex_hull_image, convex_hull_object from skimage.morphology._convex_hull import possible_hull @@ -105,5 +105,7 @@ def test_object(): assert_array_equal(convex_hull_object(image, 8), expected8) + assert_raises(ValueError, convex_hull_object, image, 7) + if __name__ == "__main__": np.testing.run_module_suite()