Merge pull request #8126 from radarhere/libtiff_version

This commit is contained in:
Hugo van Kemenade 2024-06-10 07:10:42 -06:00 committed by GitHub
commit 444faa28ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,9 @@ def test_version() -> None:
assert function(name) == version
if name != "PIL":
if name == "zlib" and version is not None:
version = version.replace(".zlib-ng", "")
version = re.sub(".zlib-ng$", "", version)
elif name == "libtiff" and version is not None:
version = re.sub("t$", "", version)
assert version is None or re.search(r"\d+(\.\d+)*$", version)
for module in features.modules: