File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1398,8 +1398,10 @@ def test_sincos_float32(self):
1398
1398
M = np .int_ (N / 20 )
1399
1399
index = np .random .randint (low = 0 , high = N , size = M )
1400
1400
x_f32 = np .float32 (np .random .uniform (low = - 100. ,high = 100. ,size = N ))
1401
- # test coverage for elements > 117435.992f for which glibc is used
1402
- x_f32 [index ] = np .float32 (10E+10 * np .random .rand (M ))
1401
+ if not glibc_older_than_2_17 :
1402
+ # test coverage for elements > 117435.992f for which glibc is used
1403
+ # this is known to be problematic on old glibc, so skip it there
1404
+ x_f32 [index ] = np .float32 (10E+10 * np .random .rand (M ))
1403
1405
x_f64 = np .float64 (x_f32 )
1404
1406
assert_array_max_ulp (np .sin (x_f32 ), np .float32 (np .sin (x_f64 )), maxulp = 2 )
1405
1407
assert_array_max_ulp (np .cos (x_f32 ), np .float32 (np .cos (x_f64 )), maxulp = 2 )
You can’t perform that action at this time.
0 commit comments