Skip to content

Conversation

@radarhere
Copy link
Member

Looking at the duplicate code in

if not is_pypy():
# core profile should not be directly instantiable
with pytest.raises(TypeError):
ImageCms.core.CmsProfile()
with pytest.raises(TypeError):
ImageCms.core.CmsProfile(0)
@pytest.mark.skipif(is_pypy(), reason="fails on PyPy")
def test_transform_typesafety() -> None:
# core transform should not be directly instantiable
with pytest.raises(TypeError):
ImageCms.core.CmsProfile()
with pytest.raises(TypeError):
ImageCms.core.CmsProfile(0)

I think @nulano's intention in #7913 was to test ImageCms.core.CmsTransform in test_transform_typesafety()

@hugovk hugovk merged commit 6b676f2 into python-pillow:main Apr 1, 2024
@radarhere radarhere deleted the imagecms branch April 1, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants