From 1d7c4fd535d27c69bb4106bf962c2805362e1ac8 Mon Sep 17 00:00:00 2001 From: Martin Zackrisson Date: Mon, 30 May 2016 13:38:55 +0200 Subject: [PATCH] Corrected Otsu test error raising assertion --- skimage/filters/tests/test_thresholding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())