summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Vetinari <h.vetinari@gmx.com>2021-11-02 14:21:01 +1100
committerH. Vetinari <h.vetinari@gmx.com>2021-11-02 14:21:01 +1100
commit12923c259c71ad0601a49ecc3de4748adaba0957 (patch)
tree546f26f0f931f1b0dc9f5640d864021a0b32d855
parent56268d5cf8ded5ebe0b51cca6c23da4b0586807c (diff)
downloadnumpy-12923c259c71ad0601a49ecc3de4748adaba0957.tar.gz
TST: skip coverage of large elements in sincos_float32 for ancient glibc
Fixes #15179
-rw-r--r--numpy/core/tests/test_umath.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py
index ffe653d18..b04faecb9 100644
--- a/numpy/core/tests/test_umath.py
+++ b/numpy/core/tests/test_umath.py
@@ -1398,8 +1398,10 @@ class TestAVXFloat32Transcendental:
M = np.int_(N/20)
index = np.random.randint(low=0, high=N, size=M)
x_f32 = np.float32(np.random.uniform(low=-100.,high=100.,size=N))
- # test coverage for elements > 117435.992f for which glibc is used
- x_f32[index] = np.float32(10E+10*np.random.rand(M))
+ if not glibc_older_than_2_17:
+ # test coverage for elements > 117435.992f for which glibc is used
+ # this is known to be problematic on old glibc, so skip it there
+ x_f32[index] = np.float32(10E+10*np.random.rand(M))
x_f64 = np.float64(x_f32)
assert_array_max_ulp(np.sin(x_f32), np.float32(np.sin(x_f64)), maxulp=2)
assert_array_max_ulp(np.cos(x_f32), np.float32(np.cos(x_f64)), maxulp=2)