From 214613c2a8b248331db619ea75298a0e4fdc79a2 Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Fri, 26 Sep 2014 18:31:56 +1000 Subject: [PATCH] Run restoration test suite when run as main --- skimage/restoration/tests/test_restoration.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skimage/restoration/tests/test_restoration.py b/skimage/restoration/tests/test_restoration.py index 915640af..0e70af56 100644 --- a/skimage/restoration/tests/test_restoration.py +++ b/skimage/restoration/tests/test_restoration.py @@ -62,3 +62,8 @@ def test_richardson_lucy(): path = pjoin(dirname(abspath(__file__)), 'camera_rl.npy') np.testing.assert_allclose(deconvolved, np.load(path), rtol=1e-3) + + +if __name__ == '__main__': + from numpy import testing + testing.run_module_suite()