mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 09:56:17 +03:00
Only replace version suffix if zlib-ng is present
This commit is contained in:
parent
c07e089fd1
commit
ed910a68d6
|
@ -36,10 +36,11 @@ def test_version() -> None:
|
||||||
else:
|
else:
|
||||||
assert function(name) == version
|
assert function(name) == version
|
||||||
if name != "PIL":
|
if name != "PIL":
|
||||||
if name == "zlib" and version is not None:
|
if version is not None:
|
||||||
version = re.sub(".zlib-ng$", "", version)
|
if name == "zlib" and features.check_feature("zlib_ng"):
|
||||||
elif name == "libtiff" and version is not None:
|
version = re.sub(".zlib-ng$", "", version)
|
||||||
version = re.sub("t$", "", version)
|
elif name == "libtiff":
|
||||||
|
version = re.sub("t$", "", version)
|
||||||
assert version is None or re.search(r"\d+(\.\d+)*$", version)
|
assert version is None or re.search(r"\d+(\.\d+)*$", version)
|
||||||
|
|
||||||
for module in features.modules:
|
for module in features.modules:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user