fpdf2 icon indicating copy to clipboard operation
fpdf2 copied to clipboard

2.8.9 test suite fails on Pillow 13, reference PDF predates it

Open DuskyElf opened this issue 1 month ago • 4 comments

Hi. Downstream report from nixpkgs, where we build from the git tag and run your test suite.

What happened:

  • nixpkgs moved Pillow 12.3.0 to 13.0.0 via https://github.com/NixOS/nixpkgs/pull/575689, as a security update, see https://pillow.readthedocs.io/en/stable/releasenotes/13.0.0.html.
  • With Pillow 13, the 2.8.9 tag fails test/image/test_full_page_image.py::test_image_with_explicit_dimensions: got 6732d6d8..., expected c7b6e70b....
  • I checked your master. PR #2043, commit 597cfff, already regenerates test/image/image_with_explicit_dimensions.pdf for Pillow 13. I verified the master reference hashes to 6732d6d8..., exactly what we generate locally, while the 2.8.9 reference hashes to c7b6e70b....

The ask: any chance of a 2.8.10 with just that regenerated test/image/image_with_explicit_dimensions.pdf, or should distros on 2.8.9 plus Pillow 13 carry a disable until 2.9.0? The released wheel is fine, this only hits checkouts of the tag running pytest, anyone testing 2.8.9 against Pillow 13 will hit it.

Thanks for the great library.

DuskyElf avatar Oct 29 '26 05:10 DuskyElf

For reference, the downstream nixpkgs report is NixOS/nixpkgs#580380.

DuskyElf avatar Oct 29 '26 05:10 DuskyElf

Hi @DuskyElf

Thanks for the detailed report and for tracking down the matching reference!

Our release process is tied to CI/CD, so publishing a 2.8.10 hotfix without the other changes currently on main would take considerable extra work.

I was already planning to release 2.9.0 at the end of October. I can start preparing it today and expect it to be available in about 24 hours.

If you need a quicker solution, you can backport commit 597cfff or temporarily disable the affected test. Otherwise, the upcoming release will include the updated reference PDF.

andersonhc avatar Oct 29 '26 11:10 andersonhc

Thanks for the quick turnaround. That timeline works for us. We disabled test_image_with_explicit_dimensions on the nixpkgs side until 2.9.0 lands (NixOS/nixpkgs#580486), so no rush on our account.

DuskyElf avatar Oct 29 '26 12:10 DuskyElf

closing as fpdf2 2.9.0 has been released

andersonhc avatar Nov 03 '26 02:11 andersonhc