Skip to content

Commit

Permalink
tests/: added test_3727().
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Sep 2, 2024
1 parent 2c903b6 commit e5bb5ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added tests/resources/test_3727.pdf
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,3 +1270,11 @@ def test_3654():
wt = pymupdf.TOOLS.mupdf_warnings()
assert wt == 'dropping unclosed output'

def test_3727():
if pymupdf.mupdf_version_tuple < (1, 24, 9):
print('test_3727(): not running because known to segv: {pymupdf.mupdf_version=}')
return
path = os.path.normpath(f'{__file__}/../../tests/resources/test_3727.pdf')
doc = pymupdf.open(path)
for page in doc:
page.get_pixmap(matrix = pymupdf.Matrix(2,2))

0 comments on commit e5bb5ba

Please sign in to comment.