Skip to content

Commit

Permalink
Merge pull request #12700 from rgommers/projections-test
Browse files Browse the repository at this point in the history
TST: bump test precision for constrained trustregion test
  • Loading branch information
tylerjereddy committed Aug 11, 2020
2 parents 28d4244 + cf95ec5 commit fafb338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/optimize/_trustregion_constr/tests/test_projections.py
Expand Up @@ -148,9 +148,9 @@ def test_iterative_refinements_dense(self):
for z in test_points:
# Test if x is in the null_space
x = Z.matvec(z)
assert_array_almost_equal(A.dot(x), 0, decimal=14)
assert_allclose(A.dot(x), 0, rtol=0, atol=2.5e-14)
# Test orthogonality
assert_array_almost_equal(orthogonality(A, x), 0, decimal=16)
assert_allclose(orthogonality(A, x), 0, rtol=0, atol=5e-16)

def test_rowspace_dense(self):
A = np.array([[1, 2, 3, 4, 0, 5, 0, 7],
Expand Down

0 comments on commit fafb338

Please sign in to comment.