From 10530a8698c6c7f4169bdf8612703c95318bdce8 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Tue, 26 Sep 2023 20:02:52 -0700 Subject: [PATCH] Change Ghostscript version skip to fail Reported to fail on earlier versions than the check tested for. --- tests/test_metadata.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 1ccc8e7a..f6b313d0 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -394,9 +394,12 @@ def test_prevent_gs_invalid_xml(resources, outdir): assert contents.find(b'\x00', xmp_start, xmp_end) == -1 -@pytest.mark.skipif( - ghostscript.version() >= Version('10.2.0'), - reason="Ghostscript 10.2.0+ exit with an error on invalid DocumentInfo", +@pytest.mark.xfail( + ghostscript.version() >= Version('10.01.2'), + reason=( + "Ghostscript now exits with an error on invalid DocumentInfo, defeating " + "this test.", + ), ) def test_malformed_docinfo(caplog, resources, outdir): generate_pdfa_ps(outdir / 'pdfa.ps')