Skip to content

Commit

Permalink
tests/: fix two mupdf version checks.
Browse files Browse the repository at this point in the history
There is a new mupdf.1.23.6 release that does not have fixes for these tests.
  • Loading branch information
julian-smith-artifex-com committed Nov 18, 2023
1 parent a75eac7 commit d342428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_2548.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_2548():
# versions with updated MuPDF also fix the bug.
if (0
or fitz.pymupdf_version_tuple >= (1, 23, 7)
or fitz.mupdf_version_tuple >= (1, 23, 6)
or fitz.mupdf_version_tuple >= (1, 23, 7)
):
expected = 'cycle in structure tree\nstructure tree broken, assume tree is missing'
assert wt == expected, f'expected:\n {expected!r}\nwt:\n {wt!r}\n'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_story.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def make_pdf(html, path_out):

assert len(doc_before) == 2

if fitz.mupdf_version_tuple >= (1, 23, 6) or fitz.pymupdf_version_tuple >= (1, 23, 7):
if fitz.mupdf_version_tuple >= (1, 23, 7) or fitz.pymupdf_version_tuple >= (1, 23, 7):
# Bug is fixed.
assert len(doc_after) == 2
else:
Expand Down

0 comments on commit d342428

Please sign in to comment.