From ac5b70e5270cfd1ea30937656393891281b3e2fa Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Sun, 13 Mar 2011 14:15:18 +0200 Subject: [PATCH] ENH: Allow stand-alone execution of ctmf test suite. --- scikits/image/filter/tests/test_ctmf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scikits/image/filter/tests/test_ctmf.py b/scikits/image/filter/tests/test_ctmf.py index c86927ff..a8840493 100644 --- a/scikits/image/filter/tests/test_ctmf.py +++ b/scikits/image/filter/tests/test_ctmf.py @@ -1,6 +1,5 @@ import os.path - import numpy as np from numpy.testing import * @@ -95,3 +94,6 @@ class TestMedianFilter(): assert (np.all(result[:14, :] == 1)) # in zero coverage areas, the result should be the lowest valud in the valid area assert (np.all(result[15:, :] == np.min(img[mask]))) + +if __name__ == "__main__": + run_module_suite()