mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
a3468996c0
Removed: _webp.WebPDecode _webp.HAVE_WEBPANIM features.webp_anim
41 lines
929 B
Python
41 lines
929 B
Python
from __future__ import annotations
|
|
|
|
import sys
|
|
|
|
from PIL import features
|
|
|
|
|
|
def test_wheel_modules() -> None:
|
|
expected_modules = {"pil", "tkinter", "freetype2", "littlecms2", "webp"}
|
|
|
|
# tkinter is not available in cibuildwheel installed CPython on Windows
|
|
try:
|
|
import tkinter
|
|
|
|
assert tkinter
|
|
except ImportError:
|
|
expected_modules.remove("tkinter")
|
|
|
|
assert set(features.get_supported_modules()) == expected_modules
|
|
|
|
|
|
def test_wheel_codecs() -> None:
|
|
expected_codecs = {"jpg", "jpg_2000", "zlib", "libtiff"}
|
|
|
|
assert set(features.get_supported_codecs()) == expected_codecs
|
|
|
|
|
|
def test_wheel_features() -> None:
|
|
expected_features = {
|
|
"raqm",
|
|
"fribidi",
|
|
"harfbuzz",
|
|
"libjpeg_turbo",
|
|
"xcb",
|
|
}
|
|
|
|
if sys.platform == "win32":
|
|
expected_features.remove("xcb")
|
|
|
|
assert set(features.get_supported_features()) == expected_features
|