From c6d12d623961a385a5f12b62a807ef7c9e5e3b95 Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Sun, 23 Mar 2025 00:06:55 +0100
Subject: [PATCH] src/img2pdf_test.py: skip test_tiff_float on s390x because of
 https://github.com/ImageMagick/ImageMagick/issues/8054

---
 src/img2pdf_test.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/img2pdf_test.py b/src/img2pdf_test.py
index fbe1420..dea82fd 100755
--- a/src/img2pdf_test.py
+++ b/src/img2pdf_test.py
@@ -21,6 +21,7 @@ import json
 import pathlib
 import itertools
 import xml.etree.ElementTree as ET
+import platform
 
 img2pdfprog = os.getenv("img2pdfprog", default="src/img2pdf.py")
 
@@ -5952,6 +5953,10 @@ def test_gif_animation(tmp_path_factory, gif_animation_img, gif_animation_pdf):
     sys.platform in ["darwin", "win32"],
     reason="test utilities not available on Windows and MacOS",
 )
+@pytest.mark.skipif(
+    platform.machine() == "s390x",
+    reason="https://github.com/ImageMagick/ImageMagick/issues/8054",
+)
 @pytest.mark.parametrize("engine", ["internal", "pikepdf"])
 def test_tiff_float(tmp_path_factory, tiff_float_img, engine):
     out_pdf = tmp_path_factory.mktemp("tiff_float") / "out.pdf"