mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-01 00:17:27 +03:00 
			
		
		
		
	Merge pull request #8009 from radarhere/zlib-ng
This commit is contained in:
		
						commit
						48907a6741
					
				|  | @ -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