[Git][reproducible-builds/diffoscope][master] Fix compatibility with ImageMagick 7.1. (Closes: reproducible-builds/diffoscope#330)

Chris Lamb (@lamby) gitlab at salsa.debian.org
Tue Feb 7 19:43:33 UTC 2023



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
60ea9cc6 by Chris Lamb at 2023-02-07T11:42:31-08:00
Fix compatibility with ImageMagick 7.1. (Closes: reproducible-builds/diffoscope#330)

- - - - -


2 changed files:

- tests/comparators/test_ico_image.py
- tests/comparators/test_jpeg_image.py


Changes:

=====================================
tests/comparators/test_ico_image.py
=====================================
@@ -24,7 +24,7 @@ from diffoscope.config import Config
 from ..utils.data import load_fixture, get_data
 from ..utils.tools import (
     skip_unless_tools_exist,
-    skip_unless_tool_is_at_least,
+    skip_unless_tool_is_between,
 )
 from .test_jpeg_image import identify_version
 
@@ -61,14 +61,18 @@ def differences_meta(image1_meta, image2_meta):
 
 
 @skip_unless_tools_exist("img2txt", "identify")
- at skip_unless_tool_is_at_least("identify", identify_version, "6.9.10-23")
+ at skip_unless_tool_is_between(
+    "identify", identify_version, "6.9.10-23", "7.0.0"
+)
 def test_diff_meta(differences_meta):
     expected_diff = get_data("ico_image_meta_expected_diff")
     assert differences_meta[-1].unified_diff == expected_diff
 
 
 @skip_unless_tools_exist("img2txt", "identify")
- at skip_unless_tool_is_at_least("identify", identify_version, "6.9.10-23")
+ at skip_unless_tool_is_between(
+    "identify", identify_version, "6.9.10-23", "7.0.0"
+)
 def test_diff_meta2(differences_meta):
     expected_diff = get_data("ico_image_meta_expected_diff_v2")
     assert differences_meta[-1].unified_diff == expected_diff


=====================================
tests/comparators/test_jpeg_image.py
=====================================
@@ -24,7 +24,7 @@ from diffoscope.comparators.image import JPEGImageFile
 from diffoscope.comparators.missing_file import MissingFile
 
 from ..utils.data import load_fixture, get_data
-from ..utils.tools import skip_unless_tools_exist, skip_unless_tool_is_at_least
+from ..utils.tools import skip_unless_tools_exist, skip_unless_tool_is_between
 
 
 image1 = load_fixture("test1.jpg")
@@ -76,7 +76,7 @@ def differences_meta(image1_meta, image2_meta):
 
 
 @skip_unless_tools_exist("img2txt", "identify")
- at skip_unless_tool_is_at_least("identify", identify_version, "6.9.6")
+ at skip_unless_tool_is_between("identify", identify_version, "6.9.6", "7.0.0")
 def test_diff_meta(differences_meta):
     expected_diff = get_data("jpeg_image_meta_expected_diff")
     assert differences_meta[-1].unified_diff == expected_diff



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/60ea9cc6418deb7880d218beb87db4ef9628015c

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/60ea9cc6418deb7880d218beb87db4ef9628015c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20230207/1554202a/attachment.htm>


More information about the rb-commits mailing list