mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PIL 11.0 changes its webp features output
This commit is contained in:
parent
b3da788e70
commit
a961ddbfcb
@ -436,16 +436,14 @@ class BuildTest(unittest.TestCase):
|
||||
out = StringIO()
|
||||
features.pilinfo(out=out, supported_formats=False)
|
||||
out = out.getvalue()
|
||||
for line in '''\
|
||||
lines = '''\
|
||||
--- PIL CORE support ok
|
||||
--- FREETYPE2 support ok
|
||||
--- WEBP support ok
|
||||
--- WEBP Transparency support ok
|
||||
--- WEBPMUX support ok
|
||||
--- WEBP Animation support ok
|
||||
--- JPEG support ok
|
||||
--- ZLIB (PNG/ZIP) support ok
|
||||
'''.splitlines():
|
||||
'''.splitlines()
|
||||
for line in lines:
|
||||
self.assertIn(line.strip(), out)
|
||||
with Image.open(I('lt.png', allow_user_override=False)) as i:
|
||||
self.assertGreaterEqual(i.size, (20, 20))
|
||||
|
Loading…
x
Reference in New Issue
Block a user