Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jul 10, 2024
1 parent 0199aaa commit ba988f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/tests/test_swig_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,3 +567,12 @@ def test_python_exceptions(sbml_example_presimulation_module):
model.setTimepoints([1])
rdata = amici.runAmiciSimulation(model, solver)
assert rdata.status == amici.AMICI_FIRST_RHSFUNC_ERR

# model throws, base catches, swig-exception handling is involved
from amici._amici import runAmiciSimulation

with pytest.raises(
RuntimeError, match="AMICI failed to integrate the forward problem"
):
# rethrow=True
runAmiciSimulation(solver, None, model.get(), True)

0 comments on commit ba988f5

Please sign in to comment.