mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-12 09:12:22 +03:00
Added tests
This commit is contained in:
parent
ab75ef6629
commit
f66be01bf6
|
@ -710,8 +710,16 @@ def test_deprecation() -> None:
|
||||||
with pytest.warns(DeprecationWarning):
|
with pytest.warns(DeprecationWarning):
|
||||||
assert isinstance(ImageCms.FLAGS, dict)
|
assert isinstance(ImageCms.FLAGS, dict)
|
||||||
|
|
||||||
profile = ImageCmsProfile(ImageCms.createProfile("sRGB"))
|
p = ImageCms.createProfile("sRGB")
|
||||||
|
profile = ImageCmsProfile(p)
|
||||||
with pytest.warns(DeprecationWarning):
|
with pytest.warns(DeprecationWarning):
|
||||||
ImageCms.ImageCmsTransform(profile, profile, "RGBA;16B", "RGB")
|
ImageCms.ImageCmsTransform(profile, profile, "RGBA;16B", "RGB")
|
||||||
with pytest.warns(DeprecationWarning):
|
with pytest.warns(DeprecationWarning):
|
||||||
ImageCms.ImageCmsTransform(profile, profile, "RGB", "RGBA;16B")
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user