Source: pillow, pikepdf
Control: found -1 pillow/9.1.0-1
Control: found -1 pikepdf/5.0.1+dfsg-1
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of pillow the autopkgtest of pikepdf fails in testing when that autopkgtest is run with the binary packages of pillow from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
pillow                 from testing    9.1.0-1
pikepdf                from testing    5.0.1+dfsg-1
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of pillow to testing [1]. Due to the nature of this issue, I filed this bug report against both packages. Can you please investigate the situation and reassign the bug to the right package?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=pillow

https://ci.debian.net/data/autopkgtest/testing/amd64/p/pikepdf/20839512/log.gz

============================= test session starts ==============================
platform linux -- Python 3.9.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /tmp/autopkgtest-lxc.97u180kp/downtmp/build.9cn/src, configfile: pyproject.toml, testpaths: tests
plugins: xdist-2.5.0, forked-1.4.0, timeout-2.1.0, hypothesis-6.36.0
gw0 I
gw0 [510]

........................................................................ [ 14%] ........x.....................Fs............ssss............s........... [ 28%] ....................................................sss................. [ 42%] s....................................................................... [ 56%] ........................................................................ [ 70%] ...........................................................s............ [ 84%] .......................................................ssss............. [ 98%] ...... [100%] =================================== FAILURES =================================== _________________ test_image_palette[pal-1bit-rgb.pdf-1-rgb2] __________________
[gw0] linux -- Python 3.9.12 /usr/bin/python3

resources = PosixPath('/tmp/autopkgtest-lxc.97u180kp/downtmp/build.9cn/src/tests/resources')
filename = 'pal-1bit-rgb.pdf', bpc = 1, rgb = (255, 128, 0)

    @pytest.mark.parametrize(
        'filename,bpc,rgb',
        [
            ('pal.pdf', 8, (0, 0, 255)),
            ('pal-1bit-trivial.pdf', 1, (255, 255, 255)),
            ('pal-1bit-rgb.pdf', 1, (255, 128, 0)),
        ],
    )
    def test_image_palette(resources, filename, bpc, rgb):
        pdf = Pdf.open(resources / filename)
        pim = PdfImage(next(iter(pdf.pages[0].images.values())))
            assert pim.palette[0] == 'RGB'
        assert pim.colorspace == '/DeviceRGB'
        assert not pim.is_inline
        assert pim.mode == 'P'
        assert pim.bits_per_component == bpc
            outstream = BytesIO()
        pim.extract_to(stream=outstream)
            im = pim.as_pil_image().convert('RGB')
      assert im.getpixel((1, 1)) == rgb
E       assert (255, 255, 255) == (255, 128, 0)
E         At index 1 diff: 255 != 128
E         Use -v to get the full diff

tests/test_image_access.py:520: AssertionError
=========================== short test summary info ============================ FAILED tests/test_image_access.py::test_image_palette[pal-1bit-rgb.pdf-1-rgb2] ============ 1 failed, 493 passed, 15 skipped, 1 xfailed in 29.67s =============
autopkgtest [16:18:04]: test test-suite

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to