mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-30 02:33:07 +03:00
Use skip_unless_feature_version
This commit is contained in:
parent
79e67cb5c3
commit
18ad4c867f
|
@ -12,6 +12,7 @@ from .helper import (
|
|||
assert_image_similar,
|
||||
assert_image_similar_tofile,
|
||||
skip_unless_feature,
|
||||
skip_unless_feature_version,
|
||||
)
|
||||
|
||||
EXTRA_DIR = "Tests/images/jpeg2000"
|
||||
|
@ -384,12 +385,9 @@ def test_custom_comment():
|
|||
assert bytes(unique_comment, "utf-8") in data
|
||||
|
||||
|
||||
@skip_unless_feature_version("jpg_2000", "2.4.0")
|
||||
def test_plt_marker():
|
||||
# Search the start of the codesteam for the PLT box (id 0xFF58)
|
||||
opj_version = re.search(r"(\d+\.\d+)\.\d+$", features.version_codec("jpg_2000"))
|
||||
assert opj_version is not None
|
||||
|
||||
if float(opj_version[1]) >= 2.4:
|
||||
out = BytesIO()
|
||||
test_card.save(out, "JPEG2000", no_jp2=True, add_plt=True)
|
||||
out.seek(0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user