Skip to content

Commit cb07786

Browse files
tests/test_pixmap.py: added test_3020().
1 parent 3b2fedf commit cb07786

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_pixmap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,7 @@ def test_fz_write_pixmap_as_jpeg():
146146

147147
with fitz.Document(stream=image.tobytes(output="jpeg"), filetype="jpeg") as doc:
148148
test_pdf_bytes = doc.convert_to_pdf()
149+
150+
def test_3020():
151+
pm = fitz.Pixmap(imgfile)
152+
pm2 = fitz.Pixmap(pm, 20, 30, None)

0 commit comments

Comments
 (0)