Skip to content

Commit da39ed7

Browse files
author
Cimon Lucas (LCM)
committed
Fix test_cat_subset_ensure_reduced_size()
1 parent 5b3b3cd commit da39ed7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/conftest.py

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def run_cli(args):
3838
@pytest.fixture
3939
def two_pages_pdf_filepath(tmp_path):
4040
"A PDF with 2 pages, and a different image on each page"
41+
# Note: prior to v2.7.9, fpdf2 produced incorrect /Resources dicts for each page (cf. fpdf2 PR #1133),
42+
# leading to an "anormal" two_pages.pdf generated there, and for test_cat_subset_ensure_reduced_size() to fail.
4143
pdf = FPDF()
4244
pdf.add_page()
4345
pdf.image(RESOURCES_ROOT / "baleines.jpg")

tests/test_cat.py

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def test_cat_subset_warn_on_missing_pages(capsys, tmp_path):
8888
assert "WARN" in captured.out
8989

9090

91-
@pytest.mark.xfail() # There is currently a bug there
9291
def test_cat_subset_ensure_reduced_size(tmp_path, two_pages_pdf_filepath):
9392
exit_code = run_cli(
9493
[

0 commit comments

Comments
 (0)