Skip to content

Commit

Permalink
corrected wrong with...statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter230655 committed Mar 2, 2025
1 parent 21668a7 commit 4332463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opty/tests/test_direct_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,7 @@ def obj_grad(free):
# solution must be given
with raises(ValueError):
time_vector = prob.time_vector(start_time=t0)
with raises(ValueError):
time_vector = prob.time_vector()

solution = np.random.randn(prob.num_free)
Expand Down

0 comments on commit 4332463

Please sign in to comment.