mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-02 23:13:40 +03:00
Accept '.zlib-ng' suffix to zlib version
This commit is contained in:
parent
41270f300f
commit
4af831e70c
|
@ -37,6 +37,8 @@ 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:
|
||||||
|
version = version.replace(".zlib-ng", "")
|
||||||
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:
|
||||||
|
|
|
@ -85,7 +85,9 @@ class TestFilePng:
|
||||||
|
|
||||||
def test_sanity(self, tmp_path: Path) -> None:
|
def test_sanity(self, tmp_path: Path) -> None:
|
||||||
# internal version number
|
# internal version number
|
||||||
assert re.search(r"\d+(\.\d+){1,3}$", features.version_codec("zlib"))
|
assert re.search(
|
||||||
|
r"\d+(\.\d+){1,3}(\.zlib\-ng)?$", features.version_codec("zlib")
|
||||||
|
)
|
||||||
|
|
||||||
test_file = str(tmp_path / "temp.png")
|
test_file = str(tmp_path / "temp.png")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user