Update comment

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo van Kemenade 2022-06-19 15:22:02 +03:00 committed by GitHub
parent 607f508080
commit 1229110fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,8 +189,8 @@ def test_exceptions():
ImageCms.getProfileName(None)
skip_missing()
# Windows, Python <= 3.9: "an integer is required (got type NoneType)"
# Others: "'NoneType' object cannot be interpreted as an integer"
# Python <= 3.9: "an integer is required (got type NoneType)"
# Python > 3.9: "'NoneType' object cannot be interpreted as an integer"
with pytest.raises(ImageCms.PyCMSError, match="integer"):
ImageCms.isIntentSupported(SRGB, None, None)