mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 15:57:56 +08:00
fix test so it looks for new Image class
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
__all__ = ['imread', 'imread_collection', 'imsave', 'imshow', 'show',
|
||||
__all__ = ['Image', 'imread', 'imread_collection', 'imsave', 'imshow', 'show',
|
||||
'push', 'pop']
|
||||
|
||||
import base64
|
||||
|
||||
@@ -7,6 +7,7 @@ from numpy.testing.decorators import skipif
|
||||
|
||||
from skimage import data_dir
|
||||
from skimage.io import ImageCollection, MultiImage
|
||||
from skimage.io import Image as ioImage
|
||||
|
||||
|
||||
try:
|
||||
@@ -33,7 +34,7 @@ class TestImageCollection():
|
||||
def test_getitem(self):
|
||||
num = len(self.collection)
|
||||
for i in range(-num, num):
|
||||
assert type(self.collection[i]) is np.ndarray
|
||||
assert type(self.collection[i]) is ioImage
|
||||
assert_array_almost_equal(self.collection[0],
|
||||
self.collection[-num])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user