mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 21:15:07 +08:00
More specific test in freeimage
This commit is contained in:
@@ -116,10 +116,12 @@ def test_metadata():
|
||||
@skipif(not FI_available)
|
||||
def test_collection():
|
||||
pattern = [os.path.join(data_dir, pic)
|
||||
for pic in ['camera.png', 'color.png']]
|
||||
for pic in ['camera.png', 'color.png', 'multipage.tif']]
|
||||
images = sio.ImageCollection(pattern)
|
||||
assert len(images) == 2
|
||||
assert len(images[:]) == 2
|
||||
assert len(images) == 4
|
||||
assert len(images[:]) == 4
|
||||
# this will fail as freeimage cannot load multi-image tifs
|
||||
assert_raises(TypeError, images.__getitem__, 3)
|
||||
|
||||
if __name__ == "__main__":
|
||||
run_module_suite()
|
||||
|
||||
Reference in New Issue
Block a user