Check that ImageCmsProfile.__getattr__ raises AttributeError

This commit is contained in:
Luke Granger-Brown 2025-06-03 17:41:07 +01:00 committed by Luke Granger-Brown
parent f66be01bf6
commit 54421b5f56

View File

@ -723,3 +723,5 @@ def test_deprecation() -> None:
profile.product_info
with pytest.warns(DeprecationWarning):
profile._set(p)
with pytest.raises(AttributeError):
profile.this_attribute_does_not_exist