diff --git a/skimage/filters/tests/test_thresholding.py b/skimage/filters/tests/test_thresholding.py index 03557caf..c5d583b2 100644 --- a/skimage/filters/tests/test_thresholding.py +++ b/skimage/filters/tests/test_thresholding.py @@ -167,7 +167,7 @@ def test_otsu_astro_image(): def test_otsu_one_color_image(): img = np.ones((10, 10), dtype=np.uint8) - assert_raises(TypeError, threshold_otsu, img) + assert_raises(ValueError, threshold_otsu, img) def test_li_camera_image(): camera = skimage.img_as_ubyte(data.camera())