Your message dated Fri, 22 Oct 2021 01:02:10 -0700
with message-id <877de5wkql....@melete.silentflame.com>
and subject line Re: Bug#996358: autopkg test failures with pillow 8.3.2
has caused the Debian Bug report #996358,
regarding autopkg test failures with pillow 8.3.2
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
996358: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996358
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:ocrmypdf
Version: 10.3.1+dfsg-1
Severity: serious
Tags: sid bookworm
according to
https://ci.debian.net/data/autopkgtest/testing/amd64/o/ocrmypdf/15912455/log.gz
ocrmypdf fails two of it's tests with some rounding errors with pillow 8.3.2. Do
the test cases just need adjustment?
=================================== FAILURES ===================================
_____________________________ test_rasterize_size ______________________________
francais =
(PosixPath('/tmp/autopkgtest-lxc.d_wti7kx/downtmp/build.u5z/src/tests/resources/francais.pdf'),
<pikepdf.Pdf
description='/tmp/autopkgtest-lxc.d_wti7kx/downtmp/build.u5z/src/tests/resources/francais.pdf'>)
outdir = PosixPath('/tmp/pytest-of-debci/pytest-0/test_rasterize_size0')
def test_rasterize_size(francais, outdir):
path, pdf = francais
page_size_pts = (pdf.pages[0].MediaBox[2], pdf.pages[0].MediaBox[3])
assert pdf.pages[0].MediaBox[0] == pdf.pages[0].MediaBox[1] == 0
page_size = (page_size_pts[0] / Decimal(72), page_size_pts[1] /
Decimal(72))
target_size = Decimal('50.0'), Decimal('30.0')
forced_dpi = Resolution(42.0, 4242.0)
rasterize_pdf(
path,
outdir / 'out.png',
raster_device='pngmono',
raster_dpi=Resolution(
target_size[0] / page_size[0], target_size[1] / page_size[1]
),
page_dpi=forced_dpi,
)
with Image.open(outdir / 'out.png') as im:
assert im.size == target_size
> assert im.info['dpi'] == forced_dpi
E assert (42.0116, 4242.0032) == Resolution(42.0x4242.0 dpi)
E At index 0 diff: 42.0116 != 42.0
E Use -v to get the full diff
tests/test_ghostscript.py:62: AssertionError
____________________________ test_rasterize_rotated ____________________________
francais =
(PosixPath('/tmp/autopkgtest-lxc.d_wti7kx/downtmp/build.u5z/src/tests/resources/francais.pdf'),
<pikepdf.Pdf
description='/tmp/autopkgtest-lxc.d_wti7kx/downtmp/build.u5z/src/tests/resources/francais.pdf'>)
outdir = PosixPath('/tmp/pytest-of-debci/pytest-0/test_rasterize_rotated0')
caplog = <_pytest.logging.LogCaptureFixture object at 0x7f325a8739d0>
def test_rasterize_rotated(francais, outdir, caplog):
path, pdf = francais
page_size_pts = (pdf.pages[0].MediaBox[2], pdf.pages[0].MediaBox[3])
assert pdf.pages[0].MediaBox[0] == pdf.pages[0].MediaBox[1] == 0
page_size = (page_size_pts[0] / Decimal(72), page_size_pts[1] /
Decimal(72))
target_size = Decimal('50.0'), Decimal('30.0')
forced_dpi = Resolution(42.0, 4242.0)
caplog.set_level(logging.DEBUG)
rasterize_pdf(
path,
outdir / 'out.png',
raster_device='pngmono',
raster_dpi=Resolution(
target_size[0] / page_size[0], target_size[1] / page_size[1]
),
page_dpi=forced_dpi,
rotation=90,
)
with Image.open(outdir / 'out.png') as im:
assert im.size == (target_size[1], target_size[0])
> assert im.info['dpi'] == (forced_dpi[1], forced_dpi[0])
E assert (4242.0032, 42.0116) == (4242.0, 42.0)
E At index 0 diff: 4242.0032 != 4242.0
E Use -v to get the full diff
tests/test_ghostscript.py:87: AssertionError
--- End Message ---
--- Begin Message ---
Version: 12.7.0+dfsg-1
Hello,
On Wed 13 Oct 2021 at 02:24PM +02, Matthias Klose wrote:
> Package: src:ocrmypdf
> Version: 10.3.1+dfsg-1
> Severity: serious
> Tags: sid bookworm
>
> according to
> https://ci.debian.net/data/autopkgtest/testing/amd64/o/ocrmypdf/15912455/log.gz
> ocrmypdf fails two of it's tests with some rounding errors with pillow 8.3.2.
> Do
> the test cases just need adjustment?
Fixed in the new upstream release I uploaded this week.
--
Sean Whitton
signature.asc
Description: PGP signature
--- End Message ---