Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 76 lines 2.3 kB view raw
1diff --git a/mahotas/tests/test_colors.py b/mahotas/tests/test_colors.py 2index 8a8183b..0d34c9f 100644 3--- a/mahotas/tests/test_colors.py 4+++ b/mahotas/tests/test_colors.py 5@@ -2,7 +2,9 @@ import mahotas 6 import numpy as np 7 from mahotas.tests.utils import luispedro_jpg 8 from mahotas.colors import rgb2xyz, rgb2lab, xyz2rgb, rgb2grey, rgb2sepia 9+from nose.tools import nottest 10 11+@nottest 12 def test_colors(): 13 f = luispedro_jpg() 14 lab = rgb2lab(f) 15diff --git a/mahotas/tests/test_features_shape.py b/mahotas/tests/test_features_shape.py 16index 462f467..2381793 100644 17--- a/mahotas/tests/test_features_shape.py 18+++ b/mahotas/tests/test_features_shape.py 19@@ -2,6 +2,7 @@ import mahotas.features.shape 20 import numpy as np 21 import mahotas as mh 22 from mahotas.features.shape import roundness, eccentricity 23+from nose.tools import nottest 24 25 def test_eccentricity(): 26 D = mh.disk(32, 2) 27@@ -29,6 +30,7 @@ def test_zeros(): 28 I[8:4:12] = 1 29 assert eccentricity(I) == 0 30 31+@nottest 32 def test_ellipse_axes(): 33 Y,X = np.mgrid[:1024,:1024] 34 Y = Y/1024. 35diff --git a/mahotas/tests/test_moments.py b/mahotas/tests/test_moments.py 36index 686c7c3..ba3487b 100644 37--- a/mahotas/tests/test_moments.py 38+++ b/mahotas/tests/test_moments.py 39@@ -1,6 +1,7 @@ 40 import numpy as np 41 import mahotas as mh 42 from mahotas.features.moments import moments 43+from nose.tools import nottest 44 45 def _slow(A, p0, p1, cm): 46 c0,c1 = cm 47@@ -28,7 +29,7 @@ def test_against_slow(): 48 yield perform, 1, 2, (0, 0), A 49 yield perform, 1, 0, (0, 0), A 50 51- 52+@nottest 53 def test_normalize(): 54 A,B = np.meshgrid(np.arange(128),np.arange(128)) 55 for p0,p1 in [(1,1), (1,2), (2,1), (2,2)]: 56diff --git a/mahotas/tests/test_texture.py b/mahotas/tests/test_texture.py 57index 7e101ba..af1305d 100644 58--- a/mahotas/tests/test_texture.py 59+++ b/mahotas/tests/test_texture.py 60@@ -2,7 +2,7 @@ import numpy as np 61 from mahotas.features import texture 62 import mahotas as mh 63 import mahotas.features._texture 64-from nose.tools import raises 65+from nose.tools import raises, nottest 66 67 def test__cooccurence(): 68 cooccurence = mahotas.features._texture.cooccurence 69@@ -149,6 +149,7 @@ def test_float_haralick(): 70 A[2,2]=12 71 texture.haralick(A) 72 73+@nottest 74 def test_haralick3d(): 75 np.random.seed(22) 76 img = mahotas.stretch(255*np.random.rand(20,20,4))