Open image file as binary in tests

This commit is contained in:
Adrian Sampson 2016-06-02 10:17:02 -07:00
parent 9f8b81a5ad
commit e71e17d924
2 changed files with 1 additions and 1 deletions

BIN
log.txt Normal file

Binary file not shown.

View file

@ -184,7 +184,7 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
image_path = os.path.join(_common.RSRC, 'image-2x3.jpg')
self.album.artpath = image_path
self.album.store()
with open(os.path.join(image_path)) as f:
with open(os.path.join(image_path), 'rb') as f:
image_data = f.read()
with control_stdin('y'):