mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +03:00
Skip webp test when webp not available
This commit is contained in:
parent
2e6ab7c669
commit
5529aba441
|
@ -3,6 +3,8 @@ import pickle
|
||||||
import pytest
|
import pytest
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
from .helper import skip_unless_feature
|
||||||
|
|
||||||
|
|
||||||
def helper_pickle_file(
|
def helper_pickle_file(
|
||||||
tmp_path, pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None
|
tmp_path, pickle, protocol=0, test_file="Tests/images/hopper.jpg", mode=None
|
||||||
|
@ -44,7 +46,9 @@ def helper_pickle_string(
|
||||||
("Tests/images/hopper.jpg", None),
|
("Tests/images/hopper.jpg", None),
|
||||||
("Tests/images/hopper.jpg", "L"),
|
("Tests/images/hopper.jpg", "L"),
|
||||||
("Tests/images/hopper.jpg", "PA"),
|
("Tests/images/hopper.jpg", "PA"),
|
||||||
("Tests/images/hopper.webp", None),
|
pytest.param(
|
||||||
|
"Tests/images/hopper.webp", None, marks=skip_unless_feature("webp")
|
||||||
|
),
|
||||||
("Tests/images/test-card.png", None),
|
("Tests/images/test-card.png", None),
|
||||||
("Tests/images/zero_bb.png", None),
|
("Tests/images/zero_bb.png", None),
|
||||||
("Tests/images/zero_bb_scale2.png", None),
|
("Tests/images/zero_bb_scale2.png", None),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user