Skip to content

Commit fa25e22

Browse files
committed
Update test_markdown_support.py
1 parent 0e17f50 commit fa25e22

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/test_markdown_support.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
def test_archive_markdown():
66
"""Test Archive support."""
7+
if pymupdf.mupdf_version_tuple < (1, 28, 0):
8+
print("no testing on MuPDF < 1.28.0")
9+
return
10+
711
path = os.path.abspath(f"{__file__}/../../tests/resources")
812
md = b"![](nur-ruhig.jpg)\n\n**A referenced image.**"
913
md_doc = pymupdf.open(stream=md, filetype="md", archive=path)
@@ -16,6 +20,10 @@ def test_archive_markdown():
1620
def test_archive_links():
1721
"""Create an internal and an external link and confirm
1822
that they are correctly converted to PDF links."""
23+
if pymupdf.mupdf_version_tuple < (1, 28, 0):
24+
print("no testing on MuPDF < 1.28.0")
25+
return
26+
1927
md = """Some text containing an external [link](http://www.google.com) to Google.
2028
Now an internal link to a header in this document: [Some Header](#some-header). The header is here:
2129

0 commit comments

Comments
 (0)