Source: fpdf2
Version: 2.7.9-1
Severity: serious
X-Debbugs-CC: pyt...@packages.debian.org
Tags: sid trixie
User: debian...@lists.debian.org
Usertags: needs-update
Control: affects -1 src:pytest

Dear maintainer(s),

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

                       pass            fail
pytest                 from testing    8.1.2-1
fpdf2                  from testing    2.7.9-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 pytest to testing [1]. Of course, pytest shouldn't just break your autopkgtest (or even worse, your package), but given the nature of the package pytest, I suspect your package needs to update to the new situation.

If this is a real problem in your package (and not only in your autopkgtest), the right binary package(s) from pytest should really add a versioned Breaks on the unfixed version of (one of your) package(s). Note: the Breaks is nice even if the issue is only in the autopkgtest as it helps the migration software to figure out the right versions to combine in the tests.

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=pytest

https://ci.debian.net/data/autopkgtest/testing/amd64/f/fpdf2/46966995/log.gz

=================================== FAILURES =================================== 263s __________________________ test_multi_cell_split_only __________________________
263s 263s     def test_multi_cell_split_only():  # discussion 314
263s         pdf = FPDF()
263s         pdf.add_page()
263s         pdf.set_font("Helvetica", size=TEXT_SIZE)
263s text = "Lorem ipsum Ut nostrud irure reprehenderit anim nostrud dolore sed ut"
263s         expected = [
263s             "Lorem ipsum Ut nostrud irure",
263s             "reprehenderit anim nostrud",
263s             "dolore sed ut",
263s         ]
263s         with pytest.warns(
263s DeprecationWarning, match='The parameter "split_only" is deprecated.'
263s         ) as record:
263s             assert (
263s pdf.multi_cell(w=0, h=LINE_HEIGHT, text=text, split_only=True) == expected
263s             )
263s >       assert len(record) == 1
263s E       assert 2 == 1
263s E        +  where 2 = len(WarningsChecker(record=True))
263s 263s test/text/test_multi_cell.py:267: AssertionError
263s =============================== warnings summary ===============================
263s test/image/test_vector_image.py::test_svg_image_no_viewbox
263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:45: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
263s     img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg")
263s 263s test/image/test_vector_image.py::test_svg_image_with_custom_width_and_no_viewbox 263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:75: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
263s     img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg", w=60)
263s 263s test/image/test_vector_image.py::test_svg_image_with_custom_size_and_no_viewbox 263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:106: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox" 263s img = pdf.image(SVG_SRCDIR / "simple_rect_no_viewbox.svg", x=50, y=50, w=30, h=60) 263s 263s test/image/test_vector_image.py::test_svg_image_style_inherited_from_fpdf 263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:132: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
263s     pdf.image(
263s 263s test/image/test_vector_image.py::test_svg_image_from_bytesio
263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:145: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
263s     pdf.image(
263s 263s test/image/test_vector_image.py::test_svg_image_from_bytes
263s /tmp/autopkgtest-lxc.vf1cnias/downtmp/build.w5B/src/test/image/test_vector_image.py:158: UserWarning: <svg> has no "viewBox", using its "width" & "height" as default "viewBox"
263s     pdf.image(
263s 263s test/table/test_table_extraction.py::test_camelot_extract_simple_table[table_simple.pdf-lattice] 263s test/table/test_table_extraction.py::test_camelot_extract_simple_table[table_with_images.pdf-lattice] 263s test/table/test_table_extraction.py::test_camelot_extract_simple_table[table_with_images_and_img_fill_width.pdf-lattice] 263s test/table/test_table_extraction.py::test_camelot_extract_simple_table[table_with_headings_styled.pdf-lattice] 263s test/table/test_table_extraction.py::test_camelot_extract_simple_table[table_with_internal_layout.pdf-lattice] 263s test/table/test_table_extraction.py::test_camelot_extract_two_tables[table_align.pdf] 263s test/table/test_table_extraction.py::test_camelot_extract_two_pages_table[lattice] 263s /usr/lib/python3/dist-packages/camelot/parsers/lattice.py:149: DeprecationWarning: 'ghostscript' will be replaced by 'poppler' as the default image conversion backend in v0.12.0. You can try out 'poppler' with backend='poppler'.
263s     warnings.warn(
263s 263s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 263s 263s ---------- coverage: platform linux, python 3.12.3-final-0 -----------
263s Coverage XML written to file coverage.xml
263s 263s =========================== short test summary info ============================ 263s FAILED test/text/test_multi_cell.py::test_multi_cell_split_only - assert 2 == 1 263s = 1 failed, 1207 passed, 52 skipped, 3 xfailed, 13 warnings in 99.91s (0:01:39) =
264s autopkgtest [04:53:23]: test unittests

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to