From 4e4a91989550c0d2fa7cc8489813d93d0cd6b568 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Fri, 10 Jun 2016 04:52:55 -0400 Subject: [PATCH] write to tempfile in binary in embedart test --- test/test_embedart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_embedart.py b/test/test_embedart.py index e58350352..dbad87968 100644 --- a/test/test_embedart.py +++ b/test/test_embedart.py @@ -113,7 +113,7 @@ class EmbedartCliTest(_common.TestCase, TestHelper): logging.getLogger('beets.embedart').setLevel(logging.DEBUG) handle, tmp_path = tempfile.mkstemp() - os.write(handle, u'I am not an image.') + os.write(handle, b'I am not an image.') os.close(handle) try: