We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aefd3c commit 8f34325Copy full SHA for 8f34325
tests/test_toc.py
@@ -76,8 +76,8 @@ def test_circular():
76
"""The test file contains circular bookmarks."""
77
doc = pymupdf.open(circular)
78
toc = doc.get_toc(False) # this must not loop
79
- rebased = hasattr(pymupdf, 'mupdf')
80
- if rebased:
+ if pymupdf.mupdf_version_tuple < (1, 27):
+ # Expect warning.
81
wt = pymupdf.TOOLS.mupdf_warnings()
82
assert wt == 'Bad or missing prev pointer in outline tree, repairing', \
83
f'{wt=}'
0 commit comments