Updated test

This commit is contained in:
Andrew Murray 2024-07-08 18:32:03 +10:00 committed by Aleksandr Karpinskii
parent f891043101
commit 4d10b3c0ab

View File

@ -36,7 +36,9 @@ def test_version() -> None:
assert version is None
else:
assert function(name) == version
if name != "PIL":
if name == "acceleration":
assert version in ("avx2", "sse4", "sse2", "neon", None)
elif name != "PIL":
if name == "zlib" and version is not None:
version = re.sub(".zlib-ng$", "", version)
elif name == "libtiff" and version is not None: