Group :: Development/Python
RPM: python3-module-pikepdf
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: pikepdf-jbig2dec.patch
Download
Download
--- tests/test_pdf.py.orig 2022-10-28 11:16:27.332035469 +0000
+++ tests/test_pdf.py 2022-10-28 11:16:30.207000315 +0000
@@ -350,11 +350,11 @@
def decode_jbig2(self, jbig2: bytes, jbig2_globals: bytes) -> bytes:
raise CalledProcessError(1, 'jbig2dec')
- monkeypatch.setattr(pikepdf.jbig2, 'get_decoder', MissingJBIG2Decoder)
+ ## monkeypatch.setattr(pikepdf.jbig2, 'get_decoder', MissingJBIG2Decoder)
with pikepdf.open(resources / 'jbig2.pdf') as pdf:
- with pytest.warns(UserWarning, match=r".*missing some specialized.*"):
- problems = pdf.check()
+ ## with pytest.warns(UserWarning, match=r".*missing some specialized.*"):
+ problems = pdf.check()
assert len(problems) == 0