From 18a6535089712d40dae3e168d30107e53a71921b Mon Sep 17 00:00:00 2001 From: Vighnesh Birodkar Date: Mon, 16 Jun 2014 23:07:37 +0530 Subject: [PATCH] Corrected test mistake --- skimage/graph/tests/test_rag.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skimage/graph/tests/test_rag.py b/skimage/graph/tests/test_rag.py index 8c28febe..e239e79f 100644 --- a/skimage/graph/tests/test_rag.py +++ b/skimage/graph/tests/test_rag.py @@ -19,4 +19,5 @@ def test_threshold_cut(): rag = graph.rag_meancolor(img, labels) new_labels = graph.threshold_cut(labels, rag, 10) - assert new_labels.max() == 2 + # Two labels + assert new_labels.max() == 1