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