Test failures with ImageMagick 7.1.1-41 #205

Open
opened 2024-11-19 04:19:20 +00:00 by dotlambda · 2 comments

42 tests fail with an error like

_________________ ERROR at setup of test_tiff_float[internal] __________________

tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7ffff66b4560>, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0'), _retention_count=3, _retention_policy='all')
tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png')

    @pytest.fixture(scope="session")
    def tiff_float_img(tmp_path_factory, tmp_normal_png):
        in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff"
        subprocess.check_call(
            CONVERT
            + [
                str(tmp_normal_png),
                "-depth",
                "32",
                "-define",
                "quantum:format=floating-point",
                str(in_img),
            ]
        )
        identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        assert identify[0]["image"].get("depth") == 8, str(identify)
        assert identify[0]["image"].get("baseDepth") == 32, str(identify)
        assert identify[0]["image"].get("pageGeometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert (
            identify[0]["image"].get("properties", {}).get("quantum:format")
            == "floating-point"
        ), str(identify)
>       assert (
            identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified"
        ), str(identify)
E       AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'permissions': 644, 'format': 'TIFF', 'formatDescription': 'Tagged Image File Format', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 32, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 3600, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19055.6, 'median': 0, 'standardDeviation': 27243.5, 'kurtosis': -1.00199, 'skewness': 0.91509, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19057.6, 'median': 0, 'standardDeviation': 27236.4, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 65535, 'mean': 19088.9, 'median': 0, 'standardDeviation': 27257.5, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 65535, 'mean': 19020.4, 'median': 0, 'standardDeviation': 27236.6, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBDBDBDBD', 'backgroundColor': '#FFFFFFFFFFFF', 'borderColor': '#DFDFDFDFDFDF', 'transparentColor': '#000000000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '3.88976MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.1-41 Q16-HDRI x86_64 d7d490223:20241115 https://imagemagick.org'}}]
E       assert None == 'unspecified'
E        +  where None = <built-in method get of dict object at 0x7ffff39bb500>('tiff:alpha')
E        +    where <built-in method get of dict object at 0x7ffff39bb500> = {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', ...}.get
E        +      where {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', ...} = <built-in method get of dict object at 0x7ffff3923040>('properties', {})
E        +        where <built-in method get of dict object at 0x7ffff3923040> = {'backgroundColor': '#FFFFFFFFFFFF', 'baseDepth': 32, 'baseName': 'in.tiff', 'borderColor': '#DFDFDFDFDFDF', ...}.get

src/img2pdf_test.py:2436: AssertionError

The full list of failing tests is

=========================== short test summary info ============================
ERROR src/img2pdf_test.py::test_tiff_float[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_cmyk8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray1[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray1[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray2[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray2[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray4[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray4[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_multipage[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_multipage[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_palette8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_palette8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_miff_rgb8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
ERROR src/img2pdf_test.py::test_miff_rgb8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix...
= 283 passed, 24 skipped, 2 deselected, 2 warnings, 42 errors in 118.04s (0:01:58) =
42 tests fail with an error like ``` _________________ ERROR at setup of test_tiff_float[internal] __________________ tmp_path_factory = TempPathFactory(_given_basetemp=None, _trace=<pluggy._tracing.TagTracerSub object at 0x7ffff66b4560>, _basetemp=PosixPath('/build/pytest-of-nixbld/pytest-0'), _retention_count=3, _retention_policy='all') tmp_normal_png = PosixPath('/build/pytest-of-nixbld/pytest-0/normal_png0/normal.png') @pytest.fixture(scope="session") def tiff_float_img(tmp_path_factory, tmp_normal_png): in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff" subprocess.check_call( CONVERT + [ str(tmp_normal_png), "-depth", "32", "-define", "quantum:format=floating-point", str(in_img), ] ) identify = json.loads(subprocess.check_output(CONVERT + [str(in_img), "json:"])) assert len(identify) == 1 # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was # put into an array, here we cater for the older version containing just # the bare dictionary if "image" in identify: identify = [identify] assert "image" in identify[0] assert identify[0]["image"].get("format") == "TIFF", str(identify) assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify) assert identify[0]["image"].get("geometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert identify[0]["image"].get("colorspace") == "sRGB", str(identify) assert identify[0]["image"].get("type") == "TrueColor", str(identify) assert identify[0]["image"].get("depth") == 8, str(identify) assert identify[0]["image"].get("baseDepth") == 32, str(identify) assert identify[0]["image"].get("pageGeometry") == { "width": 60, "height": 60, "x": 0, "y": 0, }, str(identify) assert ( identify[0]["image"].get("properties", {}).get("quantum:format") == "floating-point" ), str(identify) > assert ( identify[0]["image"].get("properties", {}).get("tiff:alpha") == "unspecified" ), str(identify) E AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nixbld/pytest-0/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'permissions': 644, 'format': 'TIFF', 'formatDescription': 'Tagged Image File Format', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 8, 'baseDepth': 32, 'channelDepth': {'red': 8, 'green': 8, 'blue': 1}, 'pixels': 3600, 'imageStatistics': {'Overall': {'min': 0, 'max': 65535, 'mean': 19055.6, 'median': 0, 'standardDeviation': 27243.5, 'kurtosis': -1.00199, 'skewness': 0.91509, 'entropy': 0.460859}}, 'channelStatistics': {'red': {'min': 0, 'max': 65535, 'mean': 19057.6, 'median': 0, 'standardDeviation': 27236.4, 'kurtosis': -1.0011, 'skewness': 0.915359, 'entropy': 0.462046}, 'green': {'min': 0, 'max': 65535, 'mean': 19088.9, 'median': 0, 'standardDeviation': 27257.5, 'kurtosis': -1.00686, 'skewness': 0.912479, 'entropy': 0.460981}, 'blue': {'min': 0, 'max': 65535, 'mean': 19020.4, 'median': 0, 'standardDeviation': 27236.6, 'kurtosis': -0.998009, 'skewness': 0.917431, 'entropy': 0.459548}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBDBDBDBD', 'backgroundColor': '#FFFFFFFFFFFF', 'borderColor': '#DFDFDFDFDFDF', 'transparentColor': '#000000000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '3.88976MB', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.1-41 Q16-HDRI x86_64 d7d490223:20241115 https://imagemagick.org'}}] E assert None == 'unspecified' E + where None = <built-in method get of dict object at 0x7ffff39bb500>('tiff:alpha') E + where <built-in method get of dict object at 0x7ffff39bb500> = {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', ...}.get E + where {'quantum:format': 'floating-point', 'signature': '347da9cc530cc040b2818b07e399104f8cd8dd42a484eb9524b0ba9970fb8cd2', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', ...} = <built-in method get of dict object at 0x7ffff3923040>('properties', {}) E + where <built-in method get of dict object at 0x7ffff3923040> = {'backgroundColor': '#FFFFFFFFFFFF', 'baseDepth': 32, 'baseName': 'in.tiff', 'borderColor': '#DFDFDFDFDFDF', ...}.get src/img2pdf_test.py:2436: AssertionError ``` The full list of failing tests is ``` =========================== short test summary info ============================ ERROR src/img2pdf_test.py::test_tiff_float[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_cmyk8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_cmyk16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_rgb16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray1[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray1[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray2[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray2[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray4[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray4[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray16[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_gray16[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_multipage[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_multipage[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_palette8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_palette8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_miff_cmyk8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_miff_cmyk8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_miff_rgb8[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... ERROR src/img2pdf_test.py::test_miff_rgb8[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/build/pytest-of-nix... = 283 passed, 24 skipped, 2 deselected, 2 warnings, 42 errors in 118.04s (0:01:58) = ```

Which Python version are you using here?
The Fedora rebuild with Python 3.14 fails in a very similar way but I suspect that you are right, and ImageMagick -41 is actually the issue here.
https://bugzilla.redhat.com/show_bug.cgi?id=2328707

Which Python version are you using here? The Fedora rebuild with Python 3.14 fails in a very similar way but I suspect that you are right, and ImageMagick -41 is actually the issue here. https://bugzilla.redhat.com/show_bug.cgi?id=2328707
Author

I can reproduce this on both Python 3.11 and Python 3.12.

I can reproduce this on both Python 3.11 and Python 3.12.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#205
No description provided.