mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
TST: Use smaller gif file in test_pil tests
This commit is contained in:
@@ -191,11 +191,11 @@ def test_all_mono():
|
||||
|
||||
|
||||
def test_multi_page_gif():
|
||||
img = imread(os.path.join(data_dir, 'no_time_for_that.gif'))
|
||||
assert img.shape == (24, 280, 500, 3), img.shape
|
||||
img2 = imread(os.path.join(data_dir, 'no_time_for_that.gif'),
|
||||
img = imread(os.path.join(data_dir, 'no_time_for_that_tiny.gif'))
|
||||
assert img.shape == (24, 25, 14, 3), img.shape
|
||||
img2 = imread(os.path.join(data_dir, 'no_time_for_that_tiny.gif'),
|
||||
img_num=5)
|
||||
assert img2.shape == (280, 500, 3)
|
||||
assert img2.shape == (25, 14, 3)
|
||||
assert_allclose(img[5], img2)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user