Skip to content

Commit b1190f0

Browse files
committed
Slightly relax equivalency check
1 parent c8c6c51 commit b1190f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_constraint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def test_single_constraint_lower_upper(target_function, constraint_function):
8989
y = res[:, 3]
9090

9191
# Check accuracy of approximation for sampled points
92-
assert constraint_function(x, y) == pytest.approx(optimizer.constraint.approx(xy), rel=1e-5, abs=1e-5)
92+
assert constraint_function(x, y) == pytest.approx(optimizer.constraint.approx(xy), rel=1e-4, abs=1e-4)
9393
assert constraint_function(x, y) == pytest.approx(
94-
optimizer.space.constraint_values[:-1], rel=1e-5, abs=1e-5
94+
optimizer.space.constraint_values[:-1], rel=1e-4, abs=1e-4
9595
)
9696

9797

0 commit comments

Comments
 (0)