Add random seeds to tests per #1044

This commit is contained in:
blink1073
2014-07-05 12:49:42 -05:00
parent 1c27a97d26
commit 5ef3f95d71
12 changed files with 24 additions and 0 deletions
+1
View File
@@ -5,6 +5,7 @@ from skimage.transform import integral_image, integrate
x = (np.random.random((50, 50)) * 255).astype(np.uint8)
s = integral_image(x)
np.random.seed(0)
def test_validity():
+3
View File
@@ -12,6 +12,9 @@ from skimage import transform as tf, data, img_as_float
from skimage.color import rgb2gray
np.random.seed(0)
def test_warp_tform():
x = np.zeros((5, 5), dtype=np.double)
x[2, 2] = 1