write to tempfile in binary in embedart test

This commit is contained in:
Johnny Robeson 2016-06-10 04:52:55 -04:00
parent 61695edc3b
commit 4e4a919895

View file

@ -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: