mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-06 13:15:48 +03:00
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:
parent
6ae6a241f2
commit
607f508080
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user