diff --git a/test/image/image_types/test_insert_images.py b/test/image/image_types/test_insert_images.py index 02f1b13e3..566cf2d42 100644 --- a/test/image/image_types/test_insert_images.py +++ b/test/image/image_types/test_insert_images.py @@ -25,6 +25,10 @@ def test_insert_jpg(tmp_path): sys.platform in ("cygwin", "win32"), reason="Required system libraries to generate JPEG2000 images are a PITA to install under Windows", ) +@pytest.mark.skipif( + sys.version_info <= (3, 8), + reason="JPEG2000 changes were done on pillow 11.1.0 which is not available for python 3.8", +) def test_insert_jpg_jpxdecode(tmp_path): pdf = fpdf.FPDF() pdf.compress = False