fix import testing

This commit is contained in:
François Boulogne
2013-06-20 23:26:10 +02:00
parent a9f962695e
commit 77d7b25b52
3 changed files with 9 additions and 3 deletions
@@ -1,7 +1,6 @@
import numpy as np
from numpy.testing import *
from skimage.transform import *
from skimage.transform import frt2, ifrt2
def test_frt():
@@ -17,3 +16,8 @@ def test_frt():
f = frt2(L)
fi = ifrt2(f)
assert len(np.nonzero(L - fi)[0]) == 0
if __name__ == '__main__':
from numpy.testing import run_module_suite
run_module_suite()
+2 -1
View File
@@ -1,5 +1,5 @@
import numpy as np
from numpy.testing import *
from numpy.testing import assert_equal
from skimage.transform import integral_image, integrate
@@ -43,4 +43,5 @@ def test_vectorized_integrate():
if __name__ == '__main__':
from numpy.testing import run_module_suite
run_module_suite()
@@ -181,4 +181,5 @@ def test_radon_iradon_circle():
if __name__ == "__main__":
from numpy.testing import run_module_suite
run_module_suite()