From 72fa347c38319613516dc0b6a2004fbfc0367b39 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 29 Dec 2020 01:47:52 -0800 Subject: [PATCH] tests: skip metadata test for two pikepdf versions that warn incorrectly --- tests/test_metadata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 16bdb16b..e6496d36 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -306,6 +306,9 @@ def test_kodak_toc(resources, outpdf): assert isinstance(p.Root.Outlines.First, pikepdf.Dictionary) +@pytest.mark.skipif( + pikepdf.__version__ in ('2.2.2', '2.2.3'), reason="Raises wrong warning" +) def test_metadata_fixup_warning(resources, outdir, caplog): options = get_parser().parse_args( args=['--output-type', 'pdfa-2', 'graph.pdf', 'out.pdf']