Don't include test-skipping 'except' in coverage

This commit is contained in:
Hugo van Kemenade 2020-11-04 15:36:02 +02:00
parent 8ec8d23af4
commit 85e991e5b6

View File

@ -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: