Skip to content

Commit 0840655

Browse files
committed
TST: linalg: bump tolerance for reference blas
1 parent d68569b commit 0840655

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scipy/linalg/tests/test_basic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ def test_stable(self):
693693
a = array([1e4] + [1]*10000, dtype=float32)
694694
try:
695695
# snrm in double precision; we obtain the same as for float64
696-
assert_almost_equal(norm(a) - 1e4, 0.5)
696+
# -- large atol needed due to varying blas implementations
697+
assert_allclose(norm(a) - 1e4, 0.5, atol=1e-2)
697698
except AssertionError:
698699
# snrm implemented in single precision, == np.linalg.norm result
699700
msg = ": Result should equal either 0.0 or 0.5 (depending on " \

0 commit comments

Comments
 (0)