From e2accfb5008b39f1d6f7cfd25c45c8a02af5fd62 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 9 Oct 2011 16:31:07 -0700 Subject: [PATCH] BUG: Fix watershed tests. --- scikits/image/morphology/tests/test_watershed.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scikits/image/morphology/tests/test_watershed.py b/scikits/image/morphology/tests/test_watershed.py index c275a281..ca7c43bf 100644 --- a/scikits/image/morphology/tests/test_watershed.py +++ b/scikits/image/morphology/tests/test_watershed.py @@ -49,8 +49,8 @@ import unittest import numpy as np import scipy.ndimage -from scikits.image.morphology.watershed import watershed \ - _slow_watershed, is_local_maximum +from scikits.image.morphology.watershed import watershed, \ + _slow_watershed, is_local_maximum eps = 1e-12 @@ -491,5 +491,5 @@ class TestIsLocalMaximum(unittest.TestCase): result = is_local_maximum(image, footprint=footprint) self.assertTrue(np.all(result)) - - +if __name__ == "__main__": + np.testing.run_module_suite()