Skip to content

Commit

Permalink
Adjust test again for older Ghostscript
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarlow83 committed Jan 28, 2025
1 parent e6daa28 commit 137b054
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_ghostscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 137b054

Please sign in to comment.