mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	skip libtiif webp test when libtiff is too old
This commit is contained in:
		
							parent
							
								
									757ee8cf52
								
							
						
					
					
						commit
						b22c66eeb8
					
				|  | @ -3,6 +3,7 @@ import io | ||||||
| import itertools | import itertools | ||||||
| import os | import os | ||||||
| import re | import re | ||||||
|  | import sys | ||||||
| from collections import namedtuple | from collections import namedtuple | ||||||
| 
 | 
 | ||||||
| import pytest | import pytest | ||||||
|  | @ -844,6 +845,8 @@ class TestFileLibTiff(LibTiffTestCase): | ||||||
|             captured = capfd.readouterr() |             captured = capfd.readouterr() | ||||||
|             if "LZMA compression support is not configured" in captured.err: |             if "LZMA compression support is not configured" in captured.err: | ||||||
|                 pytest.skip("LZMA compression support is not configured") |                 pytest.skip("LZMA compression support is not configured") | ||||||
|  |             sys.stdout.write(captured.out) | ||||||
|  |             sys.stderr.write(captured.err) | ||||||
|             raise |             raise | ||||||
| 
 | 
 | ||||||
|     def test_webp(self, capfd): |     def test_webp(self, capfd): | ||||||
|  | @ -857,6 +860,15 @@ class TestFileLibTiff(LibTiffTestCase): | ||||||
|             captured = capfd.readouterr() |             captured = capfd.readouterr() | ||||||
|             if "WEBP compression support is not configured" in captured.err: |             if "WEBP compression support is not configured" in captured.err: | ||||||
|                 pytest.skip("WEBP compression support is not configured") |                 pytest.skip("WEBP compression support is not configured") | ||||||
|  |             if ( | ||||||
|  |                 "Compression scheme 50001 strip decoding is not implemented" | ||||||
|  |                 in captured.err | ||||||
|  |             ): | ||||||
|  |                 pytest.skip( | ||||||
|  |                     "Compression scheme 50001 strip decoding is not implemented" | ||||||
|  |                 ) | ||||||
|  |             sys.stdout.write(captured.out) | ||||||
|  |             sys.stderr.write(captured.err) | ||||||
|             raise |             raise | ||||||
| 
 | 
 | ||||||
|     def test_lzw(self): |     def test_lzw(self): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user