From 549def734eaf6de2c0bd9929b83bdf9a9469d55c Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Thu, 7 May 2015 17:35:48 -0700 Subject: [PATCH] Fix failing test --- skimage/io/tests/test_imread.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/io/tests/test_imread.py b/skimage/io/tests/test_imread.py index 4f172ebb..c8d380a5 100644 --- a/skimage/io/tests/test_imread.py +++ b/skimage/io/tests/test_imread.py @@ -65,12 +65,12 @@ def test_bilevel(): def test_imread_separate_channels(): # Test that imread returns RGBA values contiguously even when they are # stored in separate planes. - x = np.zeros((3, 16, 8), np.uint8) + x = np.random.rand(3, 16, 8) f = NamedTemporaryFile(suffix='.tif') fname = f.name f.close() imsave(fname, x, plugin='tifffile') - img = imread(fname) + img = imread(fname, plugin='tifffile') os.remove(fname) assert img.shape == (16, 8, 3), img.shape