More generic match text

This commit is contained in:
Hugo van Kemenade 2022-06-15 21:57:20 +03:00
parent 959e576dd2
commit 6ae6a241f2

View File

@ -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)