From 4d1a02a5521a03ab5c90366008afeafb4456b8c2 Mon Sep 17 00:00:00 2001
From: Peter Kessen
Date: Mon, 22 Feb 2016 09:20:54 +0100
Subject: [PATCH] Removed unicode_literals from test_embedart
---
test/test_embedart.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/test/test_embedart.py b/test/test_embedart.py
index 8a21f55bc..104779810 100644
--- a/test/test_embedart.py
+++ b/test/test_embedart.py
@@ -13,8 +13,7 @@
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
-from __future__ import (division, absolute_import, print_function,
- unicode_literals)
+from __future__ import (division, absolute_import, print_function)
import os.path
import shutil
@@ -101,7 +100,7 @@ class EmbedartCliTest(_common.TestCase, TestHelper):
if os.path.isfile(tmp_path):
os.remove(tmp_path)
- self.fail('Artwork file {0} was not deleted'.format(tmp_path))
+ self.fail(u'Artwork file {0} was not deleted'.format(tmp_path))
def test_art_file_missing(self):
self.add_album_fixture()
@@ -114,7 +113,7 @@ class EmbedartCliTest(_common.TestCase, TestHelper):
logging.getLogger('beets.embedart').setLevel(logging.DEBUG)
handle, tmp_path = tempfile.mkstemp()
- os.write(handle, 'I am not an image.')
+ os.write(handle, u'I am not an image.')
os.close(handle)
try:
@@ -136,7 +135,7 @@ class EmbedartCliTest(_common.TestCase, TestHelper):
mediafile = MediaFile(syspath(item.path))
self.assertEqual(mediafile.images[0].data, self.image_data,
- 'Image written is not {0}'.format(
+ u'Image written is not {0}'.format(
self.abbey_artpath))
@require_artresizer_compare
@@ -150,7 +149,7 @@ class EmbedartCliTest(_common.TestCase, TestHelper):
mediafile = MediaFile(syspath(item.path))
self.assertEqual(mediafile.images[0].data, self.image_data,
- 'Image written is not {0}'.format(
+ u'Image written is not {0}'.format(
self.abbey_similarpath))
def test_non_ascii_album_path(self):