fix test so it looks for new Image class

This commit is contained in:
wilsaj
2012-07-20 15:39:50 -05:00
parent 605a4e2cd7
commit 70cf6cfba0
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
__all__ = ['imread', 'imread_collection', 'imsave', 'imshow', 'show',
__all__ = ['Image', 'imread', 'imread_collection', 'imsave', 'imshow', 'show',
'push', 'pop']
import base64
+2 -1
View File
@@ -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])