Skip to content

Commit 55c2840

Browse files
committed
Relax constraint.approx test slightly
1 parent 4479243 commit 55c2840

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_constraint.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,7 @@ 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)
93-
assert constraint_function(x, y) == pytest.approx(
94-
optimizer.space.constraint_values[:-1], rel=1e-5, abs=1e-5
95-
)
92+
assert constraint_function(x, y) == pytest.approx(optimizer.constraint.approx(xy), rel=1e-4, abs=1e-4)
9693

9794

9895
def test_multiple_constraints(target_function):

0 commit comments

Comments
 (0)