From f66be01bf6ade2603190486b6fb8f1b8d2efbeb2 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 3 Jun 2025 22:36:00 +1000 Subject: [PATCH] Added tests --- Tests/test_imagecms.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index f062651f0..415b09427 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -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)