Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Tests/test_imagecms.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,8 +710,16 @@ def test_deprecation() -> None:
with pytest.warns(DeprecationWarning):
assert isinstance(ImageCms.FLAGS, dict)

profile = ImageCmsProfile(ImageCms.createProfile("sRGB"))
p = ImageCms.createProfile("sRGB")
profile = ImageCmsProfile(p)
with pytest.warns(DeprecationWarning):
ImageCms.ImageCmsTransform(profile, profile, "RGBA;16B", "RGB")
with pytest.warns(DeprecationWarning):
ImageCms.ImageCmsTransform(profile, profile, "RGB", "RGBA;16B")

with pytest.warns(DeprecationWarning):
profile.product_name
with pytest.warns(DeprecationWarning):
profile.product_info
with pytest.warns(DeprecationWarning):
profile._set(p)