From a55e3346f7bfc7e836126eeb34bbaa6efb8b5d43 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Sun, 11 Jan 2015 19:22:32 +1100 Subject: [PATCH] Set up correct type for find_boundaries test --- skimage/segmentation/tests/test_boundaries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/segmentation/tests/test_boundaries.py b/skimage/segmentation/tests/test_boundaries.py index 7d5e5d9c..4019e112 100644 --- a/skimage/segmentation/tests/test_boundaries.py +++ b/skimage/segmentation/tests/test_boundaries.py @@ -4,7 +4,7 @@ from skimage.segmentation import find_boundaries, mark_boundaries def test_find_boundaries(): - image = np.zeros((10, 10)) + image = np.zeros((10, 10), dtype=np.uint8) image[2:7, 2:7] = 1 ref = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], @@ -24,7 +24,7 @@ def test_find_boundaries(): def test_mark_boundaries(): image = np.zeros((10, 10)) - label_image = np.zeros((10, 10)) + label_image = np.zeros((10, 10), dtype=np.uint8) label_image[2:7, 2:7] = 1 ref = np.array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],