From bf32edf9da36b22ba1991d560360e8cb26a4c58a Mon Sep 17 00:00:00 2001 From: Maxime Gasse Date: Tue, 11 May 2021 00:50:45 -0400 Subject: [PATCH] Updated the python tests for dynamics, to accept ValueError as a valid exception --- python/tests/test_dynamics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tests/test_dynamics.py b/python/tests/test_dynamics.py index 2c03e8915..a80e55cde 100644 --- a/python/tests/test_dynamics.py +++ b/python/tests/test_dynamics.py @@ -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)