Here's an additional patch. This time I tested it against the actual debian 
source package. Just drop this into debian/patches and append to 
debian/patches/series, and you should be good to go. Thanks. As an added bonus, 
I also verified that this is clean with what will soon be qpdf 10.2.
commit 7ca375cb6ff82011d716da1614ef5721a97f91b0
Author: James R. Barlow <ja...@purplerock.ca>
Date:   Wed Jan 6 03:39:50 2021 -0800

    Fix test_tokenfilter_is_abstract

Index: pikepdf-1.17.3+dfsg/tests/test_filters.py
===================================================================
--- pikepdf-1.17.3+dfsg.orig/tests/test_filters.py
+++ pikepdf-1.17.3+dfsg/tests/test_filters.py
@@ -88,4 +88,3 @@ def test_tokenfilter_is_abstract(pal):
     page = pikepdf.Page(pal.pages[0])
     with pytest.raises((RuntimeError, pikepdf.PdfError)):
         page.get_filtered_contents(pikepdf.TokenFilter())
-    assert 'Tried to call pure virtual' in pal.get_warnings()[0]

Reply via email to