From 1be3c954f3df3387e87c5212dcd9bbce8b88f8ae Mon Sep 17 00:00:00 2001 From: Reg Date: Mon, 21 Jan 2019 18:26:58 +0100 Subject: [PATCH] test_art/iTunesStore: Python2 string fix. --- test/test_art.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_art.py b/test/test_art.py index 08b5d774e..897cf5812 100644 --- a/test/test_art.py +++ b/test/test_art.py @@ -309,7 +309,7 @@ class ITunesStoreTest(UseThePlugin): def test_itunesstore_no_result(self): json = '{"results": []}' self.mock_response(fetchart.ITunesStore.API_URL, json) - expected = u"iTunes search for 'some artist some album' got no results" + expected = u"got no results" with capture_log('beets.test_art') as logs: with self.assertRaises(StopIteration): @@ -362,7 +362,7 @@ class ITunesStoreTest(UseThePlugin): def test_itunesstore_returns_no_result_when_error_received(self): json = '{"error": {"errors": [{"reason": "some reason"}]}}' self.mock_response(fetchart.ITunesStore.API_URL, json) - expected = u"'results' not found in json. Fields are ['error']" + expected = u"not found in json. Fields are" with capture_log('beets.test_art') as logs: with self.assertRaises(StopIteration):