Merge pull request #944 from phw/PICARD-1327-fix-load-tak

PICARD-1327: Fix loading TAK files
This commit is contained in:
Laurent Monin
2018-09-03 18:19:52 +02:00
committed by GitHub
3 changed files with 6 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ class TAKInfo(object):
def __init__(self, fileobj):
header = fileobj.read(4)
if len(header) != 4 or not header.startswith("tBaK"):
if len(header) != 4 or not header.startswith(b"tBaK"):
raise TAKHeaderError("not a TAK file")
def pprint(self):

BIN
test/data/test.tak Normal file

Binary file not shown.

View File

@@ -500,6 +500,11 @@ class MusepackSV8Test(CommonTests.FormatsTest):
supports_ratings = False
class TAKTest(CommonTests.FormatsTest):
testfile = 'test.tak'
supports_ratings = False
cover_settings = {
'embed_only_one_front_image': True,
}