Skip to content

tests skipped due to pypdf version

I was investigating why some PDF tests were skipped on guix, and it seems the same tests are also skipped on Debian:

https://buildd.debian.org/status/fetch.php?pkg=diffoscope&arch=all&ver=297&stamp=1748624754&raw=0

SKIPPED [1] tests/comparators/test_pdf.py:88: pypdf not installed or not version 3.x+ SKIPPED [1] tests/comparators/test_pdf.py:101: pypdf not installed or not version 3.x+

Current version in Debian is 5.4.0-1, current version in Guix is 5.1.0, upstream apparently has 5.8 already.

Seems to be hard-coded to check for version 3:

https://salsa.debian.org/reproducible-builds/diffoscope/-/blob/302/tests/comparators/test_pdf.py?ref_type=tags#L48

return not pypdf.__version__.startswith("3.")

Hard-coding to check for 5 enabled the two tests and they passed on Guix, though we probably want a >=3 check, at least until 6.x breaks or something. :)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information