From 54421b5f5601ba9ec4974f6b9543a3814933b530 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 3 Jun 2025 17:41:07 +0100 Subject: [PATCH] Check that ImageCmsProfile.__getattr__ raises AttributeError --- Tests/test_imagecms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index 415b09427..11c946291 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -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