[Git][reproducible-builds/diffoscope][master] Don't check for PyPDF version 3 specifically, check for >= 3. Thanks, Vagrant,...

Chris Lamb (@lamby) gitlab at salsa.debian.org
Fri Aug 1 18:42:57 UTC 2025



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
8ea42a68 by Chris Lamb at 2025-08-01T11:42:48-07:00
Don't check for PyPDF version 3 specifically, check for >= 3. Thanks, Vagrant, for the patch. (Closes: #413)

- - - - -


1 changed file:

- tests/comparators/test_pdf.py


Changes:

=====================================
tests/comparators/test_pdf.py
=====================================
@@ -45,7 +45,7 @@ def skip_unless_pypdf3():
         except (ImportError, RuntimeError):
             return True
 
-        return not pypdf.__version__.startswith("3.")
+        return not int(pypdf.__version__.split(".")[0]) >= 3
 
     return skipif(fn(), reason="pypdf not installed or not version 3.x+")
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/8ea42a680b78ba21c2b06142abda1dfb0a4610e0

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/8ea42a680b78ba21c2b06142abda1dfb0a4610e0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20250801/ecb06b4a/attachment.htm>


More information about the rb-commits mailing list