The test file contains circular bookmarks.
()
| 73 | |
| 74 | |
| 75 | 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 | if pymupdf.mupdf_version_tuple < (1, 27): |
| 80 | # Expect warning. |
| 81 | wt = pymupdf.TOOLS.mupdf_warnings() |
| 82 | assert wt == 'Bad or missing prev pointer in outline tree, repairing', \ |
| 83 | f'{wt=}' |
| 84 | |
| 85 | def test_2355(): |
| 86 |
nothing calls this directly
no test coverage detected
searching dependent graphs…