mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Improve PoDoFo test a bit
This commit is contained in:
parent
334997de14
commit
91b812b718
@ -185,7 +185,8 @@ def test_podofo():
|
||||
p = podofo.PDFDoc()
|
||||
p.open(f.name)
|
||||
if (p.title, p.author) != (mi.title, mi.authors[0]):
|
||||
raise ValueError('podofo failed to set title and author in Info dict')
|
||||
raise ValueError('podofo failed to set title and author in Info dict %s != %s' % (
|
||||
(p.title, p.author), (mi.title, mi.authors[0])))
|
||||
if not p.get_xmp_metadata():
|
||||
raise ValueError('podofo failed to write XMP packet')
|
||||
del p
|
||||
|
Loading…
x
Reference in New Issue
Block a user