From 3b0179e4c12a4f29eb1b19e117c8659c24d5fc85 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Fri, 8 May 2015 22:26:03 -0700 Subject: [PATCH] Improve test robustness --- skimage/segmentation/tests/test_clear_border.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/segmentation/tests/test_clear_border.py b/skimage/segmentation/tests/test_clear_border.py index 67739426..51431260 100644 --- a/skimage/segmentation/tests/test_clear_border.py +++ b/skimage/segmentation/tests/test_clear_border.py @@ -30,13 +30,13 @@ def test_clear_border(): def test_clear_border_non_binary(): image = np.array([[1, 2, 3, 1, 2], - [3, 4, 5, 4, 2], + [3, 3, 5, 4, 2], [3, 4, 5, 4, 2], [3, 3, 2, 1, 2]]) result = clear_border(image.copy()) expected = np.array([[0, 0, 0, 0, 0], - [0, 4, 5, 4, 0], + [0, 0, 5, 4, 0], [0, 4, 5, 4, 0], [0, 0, 0, 0, 0]])