tests: Replace skipUnless with skipif.

The function skipUnless is available in `unittest`, but not `pytest`.
This commit is contained in:
Ben Sturmfels 2022-02-04 14:03:28 +11:00
parent f3e824f68b
commit 0342c5b83e
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -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 = [