diff --git a/skimage/detection/setup.py b/skimage/detection/setup.py index fd297bd4..52445d0c 100644 --- a/skimage/detection/setup.py +++ b/skimage/detection/setup.py @@ -1,8 +1,6 @@ #!/usr/bin/env python import os -import shutil -import hashlib from skimage._build import cython diff --git a/skimage/detection/tests/test_template.py b/skimage/detection/tests/test_template.py index dfae37cb..c781279b 100644 --- a/skimage/detection/tests/test_template.py +++ b/skimage/detection/tests/test_template.py @@ -1,8 +1,5 @@ -import os.path import numpy as np -from numpy.testing import * -from skimage import data_dir -from skimage.detection import * +from skimage.detection import match_template from numpy.random import randn def test_template(): @@ -43,4 +40,6 @@ def test_template(): assert found if __name__ == "__main__": - run_module_suite() + from numpy import testing + testing.run_module_suite() +