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()
|
out = StringIO()
|
||||||
features.pilinfo(out=out, supported_formats=False)
|
features.pilinfo(out=out, supported_formats=False)
|
||||||
out = out.getvalue()
|
out = out.getvalue()
|
||||||
for line in '''\
|
lines = '''\
|
||||||
--- PIL CORE support ok
|
--- PIL CORE support ok
|
||||||
--- FREETYPE2 support ok
|
--- FREETYPE2 support ok
|
||||||
--- WEBP support ok
|
--- WEBP support ok
|
||||||
--- WEBP Transparency support ok
|
|
||||||
--- WEBPMUX support ok
|
|
||||||
--- WEBP Animation support ok
|
|
||||||
--- JPEG support ok
|
--- JPEG support ok
|
||||||
--- ZLIB (PNG/ZIP) support ok
|
--- ZLIB (PNG/ZIP) support ok
|
||||||
'''.splitlines():
|
'''.splitlines()
|
||||||
|
for line in lines:
|
||||||
self.assertIn(line.strip(), out)
|
self.assertIn(line.strip(), out)
|
||||||
with Image.open(I('lt.png', allow_user_override=False)) as i:
|
with Image.open(I('lt.png', allow_user_override=False)) as i:
|
||||||
self.assertGreaterEqual(i.size, (20, 20))
|
self.assertGreaterEqual(i.size, (20, 20))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user