MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_bboxlog_2885

Function test_bboxlog_2885

tests/test_general.py:894–910  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

892 pdf.save(os.path.abspath(f'{__file__}/../../tests/test_3070_out.pdf'))
893
894def test_bboxlog_2885():
895 doc = pymupdf.open(os.path.abspath(f'{__file__}/../../tests/resources/test_2885.pdf'))
896 page=doc[0]
897
898 bbl = page.get_bboxlog()
899 wt = pymupdf.TOOLS.mupdf_warnings()
900 if pymupdf.mupdf_version_tuple >= (1, 28):
901 assert wt == ''
902 else:
903 assert wt == 'invalid marked content and clip nesting'
904
905 bbl = page.get_bboxlog(layers=True)
906 wt = pymupdf.TOOLS.mupdf_warnings()
907 if pymupdf.mupdf_version_tuple >= (1, 28):
908 assert wt == ''
909 else:
910 assert wt == 'invalid marked content and clip nesting'
911
912def test_3081():
913 '''

Callers

nothing calls this directly

Calls 2

get_bboxlogMethod · 0.80
mupdf_warningsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…