From 88baf1979e3fd1bd216e2adc9b7839abaa6befa6 Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Fri, 20 Feb 2015 12:55:23 +0100 Subject: [PATCH] Revert "Sometimes the extract art test failed because the file type of the extracted image might be PNG or JPG. Belongs to #1328." This reverts commit c91e8cb782412c4af760bff6eb9084476eeb9d59. --- test/test_embedart.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/test_embedart.py b/test/test_embedart.py index 4a4f157ae..729f5853d 100644 --- a/test/test_embedart.py +++ b/test/test_embedart.py @@ -124,11 +124,8 @@ class EmbedartCliTest(_common.TestCase, TestHelper): self.run_command('extractart', '-n', 'extracted') - path = os.path.join(albumpath.decode('utf-8'), 'extracted.') - found = any(map(lambda ext: os.path.exists(path + ext), - ['png', 'jpeg', 'jpg'])) - - self.assertTrue(found, 'Extracted image was not found!') + self.assertExists(os.path.join(albumpath.decode('utf-8'), + 'extracted.png')) class EmbedartTest(unittest.TestCase):