Skip to content

Commit 584616a

Browse files
sebrasjulian-smith-artifex-com
authored andcommitted
Updated tests to take MuPDF 1.26.3 into account.
1 parent f653bb0 commit 584616a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_tables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_markdown():
296296
doc = pymupdf.open(filename)
297297
page = doc[0]
298298
tab = page.find_tables(strategy="lines_strict")[0]
299-
if pymupdf.mupdf_version_tuple < (1, 27):
299+
if pymupdf.mupdf_version_tuple < (1, 26, 3):
300300
md_expected = textwrap.dedent('''
301301
|Header1|Header2|Header3|
302302
|---|---|---|

tests/test_textextract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ def test_4503():
887887
strikeout = span_0['char_flags'] & pymupdf.mupdf.FZ_STEXT_STRIKEOUT
888888
print(f'{strikeout=}')
889889

890-
if pymupdf.mupdf_version_tuple >= (1, 27):
890+
if pymupdf.mupdf_version_tuple >= (1, 26, 3):
891891
assert strikeout, f'Expected bit 0 (FZ_STEXT_STRIKEOUT) to be set in {span_0["char_flags"]=:#x}.'
892892
assert text_0 == 'the right to request the state to review and, if appropriate,'
893893
elif pymupdf.mupdf_version_tuple >= (1, 26, 2):

0 commit comments

Comments
 (0)