Skip to content

Commit

Permalink
Updated the python tests for dynamics, to accept ValueError as a vali…
Browse files Browse the repository at this point in the history
…d exception
  • Loading branch information
gasse authored and AntoinePrv committed May 20, 2021
1 parent 6d7404e commit bf32edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/test_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_full_trajectory(self, model):

def test_exception(self, model):
"""Bad action raise exceptions."""
with pytest.raises((ecole.Exception, ecole.scip.Exception)):
with pytest.raises((ecole.Exception, ecole.scip.Exception, ValueError)):
self.dynamics.reset_dynamics(model)
self.dynamics.step_dynamics(model, self.bad_action)

Expand Down

0 comments on commit bf32edf

Please sign in to comment.