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