mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
Don't include test-skipping 'except' in coverage
This commit is contained in:
parent
8ec8d23af4
commit
85e991e5b6
|
@ -21,7 +21,7 @@ def test_libimagequant_quantize():
|
|||
image = hopper()
|
||||
try:
|
||||
converted = image.quantize(100, Image.LIBIMAGEQUANT)
|
||||
except ValueError as ex:
|
||||
except ValueError as ex: # pragma: no cover
|
||||
if "dependency" in str(ex).lower():
|
||||
pytest.skip("libimagequant support not available")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user