From 607f5080808d38dbc5e1d89c18ffec5d77f6f4b9 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 19 Jun 2022 12:29:39 +0300 Subject: [PATCH] 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. --- Tests/test_imagecms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/test_imagecms.py b/Tests/test_imagecms.py index 6dd388941..0ff8fc7d2 100644 --- a/Tests/test_imagecms.py +++ b/Tests/test_imagecms.py @@ -189,8 +189,8 @@ def test_exceptions(): ImageCms.getProfileName(None) skip_missing() - # macOS/Ubuntu: "'NoneType' object cannot be interpreted as an integer" - # Windows: "an integer is required (got type NoneType)" + # Windows, Python <= 3.9: "an integer is required (got type NoneType)" + # Others: "'NoneType' object cannot be interpreted as an integer" with pytest.raises(ImageCms.PyCMSError, match="integer"): ImageCms.isIntentSupported(SRGB, None, None)