mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 15:59:47 +01:00
Open image file as binary in tests
This commit is contained in:
parent
9f8b81a5ad
commit
e71e17d924
2 changed files with 1 additions and 1 deletions
BIN
log.txt
Normal file
BIN
log.txt
Normal file
Binary file not shown.
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue