Skip to content

Commit

Permalink
tests/test_annots.py:test_redact2(): address test failure with mupdf-…
Browse files Browse the repository at this point in the history
…1.24.x branch.
  • Loading branch information
julian-smith-artifex-com committed Apr 13, 2024
1 parent e1d6bb0 commit b4db698
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_annots.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ def test_redact2():
all_text0 = page.get_text("words")
page.add_redact_annot(page.rect)
page.apply_redactions(text=1)
assert all_text0 == page.get_text("words")
t = page.get_text("words")
if fitz.mupdf_version_tuple < (1, 25):
assert t == []
else:
assert t == all_text0
assert not page.get_drawings()


Expand Down

0 comments on commit b4db698

Please sign in to comment.