Skip to content

Commit d76b6ed

Browse files
tests/test_textextract.py: cope with mupdf master diagnostic change.
Actualtext => ActualText.
1 parent 527074d commit d76b6ed

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/test_textextract.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,10 @@ def test_3594():
356356
wt = pymupdf.TOOLS.mupdf_warnings()
357357
if pymupdf.mupdf_version_tuple < (1, 26, 8):
358358
assert not wt
359-
else:
359+
elif pymupdf.mupdf_version_tuple < (1, 28):
360360
assert wt == 'Actualtext with no position. Text may be lost or mispositioned.\n... repeated 2 times...'
361+
else:
362+
assert wt == 'ActualText with no position. Text may be lost or mispositioned.\n... repeated 2 times...'
361363

362364

363365
def test_3687():
@@ -905,7 +907,10 @@ def test_4546():
905907
wt = pymupdf.TOOLS.mupdf_warnings()
906908
if pymupdf.mupdf_version_tuple >= (1, 26, 8):
907909
assert text == expected_mupdf_1_27_0
908-
assert wt == 'Actualtext with no position. Text may be lost or mispositioned.\n... repeated 120 times...'
910+
if pymupdf.mupdf_version_tuple >= (1, 28):
911+
assert wt == 'ActualText with no position. Text may be lost or mispositioned.\n... repeated 120 times...'
912+
else:
913+
assert wt == 'Actualtext with no position. Text may be lost or mispositioned.\n... repeated 120 times...'
909914
elif pymupdf.mupdf_version_tuple >= (1, 26, 1):
910915
assert text == expected_mupdf_1_26_1
911916
assert not wt

0 commit comments

Comments
 (0)