From be474b3f5254d265798ff3a45a3a2248a6de4b2f Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sat, 4 Jun 2016 21:20:07 -0400 Subject: [PATCH] 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 --- test/test_mediafile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_mediafile.py b/test/test_mediafile.py index 9fe4cae5b..0ee93ef42 100644 --- a/test/test_mediafile.py +++ b/test/test_mediafile.py @@ -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)