diff --git a/skimage/io/tests/test_freeimage.py b/skimage/io/tests/test_freeimage.py index 7c04bee5..fd5af343 100644 --- a/skimage/io/tests/test_freeimage.py +++ b/skimage/io/tests/test_freeimage.py @@ -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()