numpy/24776.patch
Gwyn Ciesla 200eb18e3f 1.26.0
2023-09-26 10:43:42 -05:00

23 lines
849 B
Diff

From 8f8a4a4a54d63ce7d9ed8aca024561e6820d8970 Mon Sep 17 00:00:00 2001
From: Sayed Adel <seiko@imavr.com>
Date: Fri, 22 Sep 2023 11:30:49 +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