From 0342c5b83e70220be0e998e5dfdacc40d3071c81 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 4 Feb 2022 14:03:28 +1100 Subject: [PATCH] tests: Replace skipUnless with skipif. The function skipUnless is available in `unittest`, but not `pytest`. --- tests/test_pdfforms_fill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pdfforms_fill.py b/tests/test_pdfforms_fill.py index bdec074..a6ac821 100644 --- a/tests/test_pdfforms_fill.py +++ b/tests/test_pdfforms_fill.py @@ -345,7 +345,7 @@ def test_main_generate_fdf(): else: pytest.fail(f"pattern {pattern!r} not found in FDF output") -@pytest.mark.skipUnless(PDFTK, "need pdftk installed") +@pytest.mark.skipif(not PDFTK, reason="need pdftk installed") @pytest.mark.xfail(reason="`pdftk fill_form` expects a full PDF") def test_main_fill_pdf(): arglist = [