diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index 6dd388941..0ff8fc7d2 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -189,8 +189,8 @@ def test_exceptions(): ImageCms.getProfileName(None) skip_missing() - # macOS/Ubuntu: "'NoneType' object cannot be interpreted as an integer" - # Windows: "an integer is required (got type NoneType)" + # Windows, Python <= 3.9: "an integer is required (got type NoneType)" + # Others: "'NoneType' object cannot be interpreted as an integer" with pytest.raises(ImageCms.PyCMSError, match="integer"): ImageCms.isIntentSupported(SRGB, None, None)