Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37566281
en ru br
ALT Linux repos
S:6.2.1-alt3

Group :: Development/Python
RPM: python3-module-pikepdf

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: pikepdf-jbig2dec.patch
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
 
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin