From 137b054f431fb0e5737cd630cfcd42cc38afcb40 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 27 Jan 2025 23:44:37 -0800 Subject: [PATCH] Adjust test again for older Ghostscript --- tests/test_ghostscript.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_ghostscript.py b/tests/test_ghostscript.py index da3654c77..500c349ed 100644 --- a/tests/test_ghostscript.py +++ b/tests/test_ghostscript.py @@ -241,6 +241,10 @@ def pdf_with_invalid_image(outdir): return outdir / 'invalid_image.pdf' +@pytest.mark.xfail( + ghostscript.version() < Version('10.04.0'), + reason="Older Ghostscript behavior is different", +) def test_recoverable_image_error(pdf_with_invalid_image, outdir, caplog): # When stop_on_error is False, we expect Ghostscript to print an error # but continue