You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/test_general.py
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -911,11 +911,17 @@ def test_bboxlog_2885():
911
911
912
912
bbl=page.get_bboxlog()
913
913
wt=pymupdf.TOOLS.mupdf_warnings()
914
-
assertwt=='invalid marked content and clip nesting'
914
+
ifpymupdf.mupdf_version_tuple>= (1, 28):
915
+
assertwt==''
916
+
else:
917
+
assertwt=='invalid marked content and clip nesting'
915
918
916
919
bbl=page.get_bboxlog(layers=True)
917
920
wt=pymupdf.TOOLS.mupdf_warnings()
918
-
assertwt=='invalid marked content and clip nesting'
921
+
ifpymupdf.mupdf_version_tuple>= (1, 28):
922
+
assertwt==''
923
+
else:
924
+
assertwt=='invalid marked content and clip nesting'
919
925
920
926
deftest_3081():
921
927
'''
@@ -1757,7 +1763,10 @@ def test_3569():
1757
1763
'</svg>\n'
1758
1764
)
1759
1765
wt=pymupdf.TOOLS.mupdf_warnings()
1760
-
assertwt=='unknown cid collection: PDFAUTOCAD-Indentity0\nnon-embedded font using identity encoding: ArialMT (mapping via )\ninvalid marked content and clip nesting'
1766
+
ifpymupdf.mupdf_version_tuple>= (1, 28):
1767
+
assertwt=='unknown cid collection: PDFAUTOCAD-Indentity0\nnon-embedded font using identity encoding: ArialMT (mapping via )\ninvalid marked content sequence / clip nesting'
1768
+
else:
1769
+
assertwt=='unknown cid collection: PDFAUTOCAD-Indentity0\nnon-embedded font using identity encoding: ArialMT (mapping via )\ninvalid marked content and clip nesting'
1761
1770
1762
1771
deftest_3450():
1763
1772
# This issue is a slow-down, so we just show time taken - it's not safe
0 commit comments