wrap a call to filter in a list()

There are other filters like this in the master branch, but
2to3 converts them into list comprehensions. We'll deal with those
later
This commit is contained in:
Johnny Robeson 2016-06-04 21:20:07 -04:00
parent f7f249f6c6
commit be474b3f52

View file

@ -194,8 +194,8 @@ class ExtendedImageStructureTestMixin(ImageStructureTestMixin):
self.assertEqual(len(mediafile.images), 3)
# WMA does not preserve the order, so we have to work around this
image = filter(lambda i: i.mime_type == 'image/tiff',
mediafile.images)[0]
image = list(filter(lambda i: i.mime_type == 'image/tiff',
mediafile.images))[0]
self.assertExtendedImageAttributes(
image, desc=u'the composer', type=ImageType.composer)