Update comment

We get "an integer is required (got type NoneType)" with Python 3.7-3.9 on Windows.

We get "'NoneType' object cannot be interpreted as an integer" with Python 3.10 on Windows and all versions on macOS and Ubuntu.
This commit is contained in:
Hugo van Kemenade 2022-06-19 12:29:39 +03:00 committed by GitHub
parent 6ae6a241f2
commit 607f508080
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) ImageCms.getProfileName(None)
skip_missing() skip_missing()
# macOS/Ubuntu: "'NoneType' object cannot be interpreted as an integer" # Windows, Python <= 3.9: "an integer is required (got type NoneType)"
# Windows: "an integer is required (got type NoneType)" # Others: "'NoneType' object cannot be interpreted as an integer"
with pytest.raises(ImageCms.PyCMSError, match="integer"): with pytest.raises(ImageCms.PyCMSError, match="integer"):
ImageCms.isIntentSupported(SRGB, None, None) ImageCms.isIntentSupported(SRGB, None, None)