mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 08:10:34 +08:00
Fix failing test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user