Skip to content

Commit

Permalink
Update test, ask_tell data not changed in-place
Browse files Browse the repository at this point in the history
  • Loading branch information
khurram-ghani committed Oct 11, 2023
1 parent ef9e455 commit 59e0cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test_ask_tell_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def test_ask_tell_optimizer_copies_state(
ask_tell.tell(new_data)
state_end: Record[None] = ask_tell.to_record(copy=copy)

assert_datasets_allclose(state_start.dataset, init_dataset if copy else init_dataset + new_data)
assert_datasets_allclose(state_start.dataset, init_dataset)
assert_datasets_allclose(state_end.dataset, init_dataset + new_data)
assert state_start.model is not model if copy else state_start.model is model

Expand Down

0 comments on commit 59e0cab

Please sign in to comment.