diff --git a/skimage/filter/rank/tests/test_rank.py b/skimage/filter/rank/tests/test_rank.py index 1d573b81..cedeb92d 100644 --- a/skimage/filter/rank/tests/test_rank.py +++ b/skimage/filter/rank/tests/test_rank.py @@ -437,7 +437,7 @@ def test_16bit(): image[10, 10] = value assert rank.minimum(image, selem)[10, 10] == 0 assert rank.maximum(image, selem)[10, 10] == value - assert rank.mean(image, selem)[10, 10] == value / selem.size + assert rank.mean(image, selem)[10, 10] == int(value / selem.size) def test_bilateral():