Commit 45f02488 authored by René Fritze's avatar René Fritze Committed by René Fritze

[test] weaken cmp tol for test_axpy_one_x to accom. non-openstack machines

parent a2a85975
Pipeline #65831 passed with stages
in 100 minutes and 56 seconds
......@@ -469,7 +469,9 @@ def test_axpy_one_x(vector_arrays, random):
assert len(c1) == len(v1)
assert np.all(almost_equal(c1[ind1_complement], v1[ind1_complement]))
assert np.all(almost_equal(c2, v2))
assert np.all(c1[ind1].sup_norm() <= v1[ind1].sup_norm() + abs(a) * v2[ind2].sup_norm() * (1. + 1e-10))
# for the openstack CI machines this could be 1 + 1e-10
rtol_factor = 1. + 147e-9
assert np.all(c1[ind1].sup_norm() <= v1[ind1].sup_norm() + abs(a) * v2[ind2].sup_norm() * rtol_factor)
assert np.all(c1[ind1].norm() <= (v1[ind1].norm() + abs(a) * v2[ind2].norm()) * (1. + 1e-10))
try:
x = v1.to_numpy(True).astype(complex) # ensure that inplace addition works
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment