From adab15da7a0c57b9f8b96319d42d2df6b4f3ccb3 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Mon, 2 Nov 2020 14:27:32 +0900 Subject: [PATCH] FIX scipy LooseVersion for sum_labels check #176 --- tests/test_dask_image/test_ndmeasure/test_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_dask_image/test_ndmeasure/test_core.py b/tests/test_dask_image/test_ndmeasure/test_core.py index 3d66cace..a2d3791c 100644 --- a/tests/test_dask_image/test_ndmeasure/test_core.py +++ b/tests/test_dask_image/test_ndmeasure/test_core.py @@ -113,7 +113,7 @@ def test_center_of_mass(datatype): ) def test_measure_props(funcname, shape, chunks, has_lbls, ind): # early scipy version uses a different name sum insted of sum_labels. - if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.5.0'): + if funcname == 'sum_labels' and scipy.__version__ < LooseVersion('1.6.0'): scipy_funcname = 'sum' else: scipy_funcname = funcname