From 4be83a5582acda08e5016e59c26fb6eba22f5f99 Mon Sep 17 00:00:00 2001
From: Sayed Adel <seiko@imavr.com>
Date: Wed, 23 Aug 2023 03:39:07 +0400
Subject: [PATCH] BUG: Fix SIMD f32 trunc test on s390x when baseline is none

---
 numpy/core/tests/test_simd_module.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/numpy/core/tests/test_simd_module.py b/numpy/core/tests/test_simd_module.py
index 44dc58dac09..4fbaa9f3008 100644
--- a/numpy/core/tests/test_simd_module.py
+++ b/numpy/core/tests/test_simd_module.py
@@ -86,6 +86,8 @@ def test_signed_overflow(self, sfx):
         assert lanes == [0] * nlanes
 
     def test_truncate_f32(self):
+        if not npyv.simd_f32:
+            pytest.skip("F32 isn't support by the SIMD extension")
         f32 = npyv.setall_f32(0.1)[0]
         assert f32 != 0.1
         assert round(f32, 1) == 0.1
