Skip to content

Commit 2733128

Browse files
jhoofwijkbasnijholt
authored andcommitted
fix broken tests and use the new API
1 parent 81a3824 commit 2733128

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adaptive/tests/test_learner1d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_loss_interpolation():
8989
for i in range(100):
9090
# Add a 100 points with either None or 0
9191
if random.random() < 0.9:
92-
learner.tell(random.uniform(-1, 1), None)
92+
learner.tell_pending(random.uniform(-1, 1))
9393
else:
9494
learner.tell(random.uniform(-1, 1), 0)
9595

@@ -141,7 +141,7 @@ def test_adding_existing_point_passes_silently():
141141
l.tell(0, 0)
142142
l.tell(1, 0)
143143
l.tell(2, 0)
144-
l.tell(1, None)
144+
l.tell(1, 100)
145145

146146

147147
def test_loss_at_machine_precision_interval_is_zero():

0 commit comments

Comments
 (0)