Corrected ImageCms test by radarhere · Pull Request #7930 · python-pillow/Pillow
| 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) |