Skip to content

tests fail with ImageMagick-7.1.0.57-1.fc38

Fedora is upgrading to IM 7.1, and diffoscope build fails:

=================================== FAILURES ===================================
________________________________ test_diff_meta ________________________________
differences_meta = [<Difference Image metadata -- Image metadata []>]
    @skip_unless_tools_exist("img2txt", "identify")
    @skip_unless_tool_is_at_least("identify", identify_version, "6.9.10-23")
    def test_diff_meta(differences_meta):
        expected_diff = get_data("ico_image_meta_expected_diff")
>       assert differences_meta[-1].unified_diff == expected_diff
E       AssertionError: assert '@@ -1,17 +1,17 @@\n Image format: ICO\n-File size: 6926B\n+File size: 3270B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: Undefined\n Compression quality: 0\n Colorspace: sRGB\n Channels: srgba\n-Depth: 4\n+Depth: 1\n Interlace mode: None\n Rendering intent: \n X resolution: 0\n Y resolution: 0\n Resolution units: Undefined\n Transparency channel enabled: Blend\n Gamma: 0.454545\n' == '@@ -1,17 +1,17 @@\n Image format: ICO\n-File size: 6926B\n+File size: 3270B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: Undefined\n Compression quality: 0\n Colorspace: sRGB\n Channels: srgba\n-Depth: 4\n+Depth: 1\n Interlace mode: None\n Rendering intent: Perceptual\n X resolution: 0\n Y resolution: 0\n Resolution units: Undefined\n Transparency channel enabled: True\n Gamma: 0.454545\n'
E           @@ -1,17 +1,17 @@
E            Image format: ICO
E           -File size: 6926B
E           +File size: 3270B
E            Height: 100
E            Width: 100
E            Orientation: Undefined
E            Compression type: Undefined
E            Compression quality: 0
E            Colorspace: sRGB
E            Channels: srgba
E           -Depth: 4
E           +Depth: 1
E            Interlace mode: None
E         -  Rendering intent: Perceptual
E         ?                    ----------
E         +  Rendering intent: 
E            X resolution: 0
E            Y resolution: 0
E            Resolution units: Undefined
E         -  Transparency channel enabled: True
E         ?                                ^^^
E         +  Transparency channel enabled: Blend
E         ?                                ^^ ++
E            Gamma: 0.454545
tests/comparators/test_ico_image.py:67: AssertionError
_______________________________ test_diff_meta2 ________________________________
differences_meta = [<Difference Image metadata -- Image metadata []>]
    @skip_unless_tools_exist("img2txt", "identify")
    @skip_unless_tool_is_at_least("identify", identify_version, "6.9.10-23")
    def test_diff_meta2(differences_meta):
        expected_diff = get_data("ico_image_meta_expected_diff_v2")
>       assert differences_meta[-1].unified_diff == expected_diff
E       AssertionError: assert '@@ -1,17 +1,17 @@\n Image format: ICO\n-File size: 6926B\n+File size: 3270B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: Undefined\n Compression quality: 0\n Colorspace: sRGB\n Channels: srgba\n-Depth: 4\n+Depth: 1\n Interlace mode: None\n Rendering intent: \n X resolution: 0\n Y resolution: 0\n Resolution units: Undefined\n Transparency channel enabled: Blend\n Gamma: 0.454545\n' == '@@ -1,17 +1,17 @@\n Image format: ICO\n-File size: 6926B\n+File size: 3270B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: Undefined\n Compression quality: 0\n Colorspace: sRGB\n Channels: srgba\n-Depth: 4\n+Depth: 1\n Interlace mode: None\n Rendering intent: Perceptual\n X resolution: 0\n Y resolution: 0\n Resolution units: Undefined\n Transparency channel enabled: True\n Gamma: 0.454545\n'
E           @@ -1,17 +1,17 @@
E            Image format: ICO
E           -File size: 6926B
E           +File size: 3270B
E            Height: 100
E            Width: 100
E            Orientation: Undefined
E            Compression type: Undefined
E            Compression quality: 0
E            Colorspace: sRGB
E            Channels: srgba
E           -Depth: 4
E           +Depth: 1
E            Interlace mode: None
E         -  Rendering intent: Perceptual
E         ?                    ----------
E         +  Rendering intent: 
E            X resolution: 0
E            Y resolution: 0
E            Resolution units: Undefined
E         -  Transparency channel enabled: True
E         ?                                ^^^
E         +  Transparency channel enabled: Blend
E         ?                                ^^ ++
E            Gamma: 0.454545
tests/comparators/test_ico_image.py:74: AssertionError
________________________________ test_diff_meta ________________________________
differences_meta = [<Difference Image metadata -- Image metadata []>]
    @skip_unless_tools_exist("img2txt", "identify")
    @skip_unless_tool_is_at_least("identify", identify_version, "6.9.6")
    def test_diff_meta(differences_meta):
        expected_diff = get_data("jpeg_image_meta_expected_diff")
>       assert differences_meta[-1].unified_diff == expected_diff
E       AssertionError: assert '@@ -1,20 +1,20 @@\n Image format: JPEG\n-File size: 662B\n+File size: 627B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: JPEG\n-Compression quality: 90\n+Compression quality: 95\n Colorspace: sRGB\n Channels: srgb\n Depth: 8\n Interlace mode: JPEG\n Rendering intent: \n-X resolution: 88\n-Y resolution: 88\n+X resolution: 65\n+Y resolution: 65\n Resolution units: PixelsPerInch\n Transparency channel enabled: Undefined\n Gamma: 0.454545\n Number of unique colors: 1\n-Comment: Comment #1\n+Comment: Comment #2\n EXIF data: \n' == '@@ -1,20 +1,20 @@\n Image format: JPEG\n-File size: 662B\n+File size: 627B\n Height: 100\n Width: 100\n Orientation: Undefined\n Compression type: JPEG\n-Compression quality: 90\n+Compression quality: 95\n Colorspace: sRGB\n Channels: srgb\n Depth: 8\n Interlace mode: JPEG\n Rendering intent: Perceptual\n-X resolution: 88\n-Y resolution: 88\n+X resolution: 65\n+Y resolution: 65\n Resolution units: PixelsPerInch\n Transparency channel enabled: False\n Gamma: 0.454545\n Number of unique colors: 1\n-Comment: Comment #1\n+Comment: Comment #2\n EXIF data: \n'
E           @@ -1,20 +1,20 @@
E            Image format: JPEG
E           -File size: 662B
E           +File size: 627B
E            Height: 100
E            Width: 100
E            Orientation: Undefined
E            Compression type: JPEG
E           -Compression quality: 90
E           +Compression quality: 95
E            Colorspace: sRGB
E            Channels: srgb
E            Depth: 8
E            Interlace mode: JPEG
E         -  Rendering intent: Perceptual
E         ?                    ----------
E         +  Rendering intent: 
E           -X resolution: 88
E           -Y resolution: 88
E           +X resolution: 65
E           +Y resolution: 65
E            Resolution units: PixelsPerInch
E         -  Transparency channel enabled: False
E         ?                                ^^^^
E         +  Transparency channel enabled: Undefined
E         ?                                ^^^ +++++
E            Gamma: 0.454545
E            Number of unique colors: 1
E           -Comment: Comment #1
E           +Comment: Comment #2
E            EXIF data:
tests/comparators/test_jpeg_image.py:82: AssertionError
=========================== short test summary info ============================
FAILED tests/comparators/test_ico_image.py::test_diff_meta - AssertionError: ...
FAILED tests/comparators/test_ico_image.py::test_diff_meta2 - AssertionError:...
FAILED tests/comparators/test_jpeg_image.py::test_diff_meta - AssertionError:...
========== 3 failed, 615 passed, 77 skipped, 13 deselected in 47.08s ===========

See https://koji.fedoraproject.org/koji/taskinfo?taskID=96529387 (though full logs for a failed build will be discarded after a few weeks).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information