diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py index d504d748d6..adaca52206 100644 --- a/src/calibre/test_build.py +++ b/src/calibre/test_build.py @@ -397,6 +397,22 @@ class BuildTest(unittest.TestCase): except ImportError: from PIL import _imaging, _imagingft, _imagingmath _imaging, _imagingmath, _imagingft + from PIL import features + from io import StringIO + out = StringIO() + features.pilinfo(out=out, supported_formats=False) + out = out.getvalue() + for line in '''\ + --- 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(): + self.assertIn(line.strip(), out) i = Image.open(I('lt.png', allow_user_override=False)) self.assertGreaterEqual(i.size, (20, 20)) i = Image.open(P('catalog/DefaultCover.jpg', allow_user_override=False))