Skip to content

Commit

Permalink
Merge pull request #8126 from radarhere/libtiff_version
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 10, 2024
2 parents 53e82e4 + 8e8ee1e commit 444faa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def test(name: str, function: Callable[[str], str | None]) -> 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:
Expand Down

0 comments on commit 444faa2

Please sign in to comment.