Skip to content

Commit c6f060f

Browse files
tests/test_general.py: test_4712*(): enable these tests if mupdf >= 1.26.11.
1 parent 7b5aca3 commit c6f060f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_general.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,8 +2123,8 @@ def test_4712():
21232123
'''
21242124
Crash with "corrupted double-linked list
21252125
'''
2126-
if 1:
2127-
print(f'test_4712(): Not running because known to fail.')
2126+
if pymupdf.mupdf_version_tuple < (1, 26, 11):
2127+
print(f'test_4712m(): Not running because known to fail on mupdf < 1.26.11: {pymupdf.mupdf_version=}.')
21282128
return
21292129
path_a = os.path.normpath(f'{__file__}/../../tests/resources/test_4712_a.pdf')
21302130
path_b = os.path.normpath(f'{__file__}/../../tests/resources/test_4712_b.pdf')
@@ -2137,8 +2137,8 @@ def test_4712():
21372137

21382138

21392139
def test_4712m():
2140-
if 1:
2141-
print(f'test_4712b(): Not running because known to fail.')
2140+
if pymupdf.mupdf_version_tuple < (1, 26, 11):
2141+
print(f'test_4712m(): Not running because known to fail on mupdf < 1.26.11: {pymupdf.mupdf_version=}.')
21422142
return
21432143

21442144
path_a = os.path.normpath(f'{__file__}/../../tests/resources/test_4712_a.pdf')

0 commit comments

Comments
 (0)