diff --git a/tests/test_page.py b/tests/test_page.py index 84774dbf2..a5e5725b9 100644 --- a/tests/test_page.py +++ b/tests/test_page.py @@ -1270,6 +1270,7 @@ def test_compression(): """Test for issue #1897""" def create_stamp_pdf() -> BytesIO: + pytest.importorskip("fpdf") from fpdf import FPDF pdf = FPDF() diff --git a/tests/test_writer.py b/tests/test_writer.py index 494fa08cd..74bd1dd52 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -1951,6 +1951,7 @@ def _get_parent_bookmark(current_indent, history_indent, bookmarks) -> Any: def test_merging_many_temporary_files(): def create_number_pdf(n) -> BytesIO: + pytest.importorskip("fpdf") from fpdf import FPDF pdf = FPDF()