mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
More generic match text
This commit is contained in:
parent
959e576dd2
commit
6ae6a241f2
|
@ -189,10 +189,9 @@ def test_exceptions():
|
|||
ImageCms.getProfileName(None)
|
||||
skip_missing()
|
||||
|
||||
with pytest.raises(
|
||||
ImageCms.PyCMSError,
|
||||
match="'NoneType' object cannot be interpreted as an integer",
|
||||
):
|
||||
# macOS/Ubuntu: "'NoneType' object cannot be interpreted as an integer"
|
||||
# Windows: "an integer is required (got type NoneType)"
|
||||
with pytest.raises(ImageCms.PyCMSError, match="integer"):
|
||||
ImageCms.isIntentSupported(SRGB, None, None)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user