mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +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)
|
ImageCms.getProfileName(None)
|
||||||
skip_missing()
|
skip_missing()
|
||||||
|
|
||||||
with pytest.raises(
|
# macOS/Ubuntu: "'NoneType' object cannot be interpreted as an integer"
|
||||||
ImageCms.PyCMSError,
|
# Windows: "an integer is required (got type NoneType)"
|
||||||
match="'NoneType' object cannot be interpreted as an 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