Skip to content

Commit 8f34325

Browse files
tests/test_toc.py: test_circular(): update to match new behaviour of mupdf master.
Current mupdf master does not show a warning.
1 parent 7aefd3c commit 8f34325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_toc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def test_circular():
7676
"""The test file contains circular bookmarks."""
7777
doc = pymupdf.open(circular)
7878
toc = doc.get_toc(False) # this must not loop
79-
rebased = hasattr(pymupdf, 'mupdf')
80-
if rebased:
79+
if pymupdf.mupdf_version_tuple < (1, 27):
80+
# Expect warning.
8181
wt = pymupdf.TOOLS.mupdf_warnings()
8282
assert wt == 'Bad or missing prev pointer in outline tree, repairing', \
8383
f'{wt=}'

0 commit comments

Comments
 (0)