We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d68569b commit 0840655Copy full SHA for 0840655
scipy/linalg/tests/test_basic.py
@@ -693,7 +693,8 @@ def test_stable(self):
693
a = array([1e4] + [1]*10000, dtype=float32)
694
try:
695
# snrm in double precision; we obtain the same as for float64
696
- assert_almost_equal(norm(a) - 1e4, 0.5)
+ # -- large atol needed due to varying blas implementations
697
+ assert_allclose(norm(a) - 1e4, 0.5, atol=1e-2)
698
except AssertionError:
699
# snrm implemented in single precision, == np.linalg.norm result
700
msg = ": Result should equal either 0.0 or 0.5 (depending on " \
0 commit comments