diff --git a/tests/test_evo.py b/tests/test_evo.py index 08f118ed..4ef2a128 100644 --- a/tests/test_evo.py +++ b/tests/test_evo.py @@ -419,8 +419,12 @@ def test_int_stop_calling_details(self, ham_rcr_psi): # check that TypeError not related to argument count gets properly # raised with raises(TypeError): + + def int_step(t, p, H): + raise TypeError("Something else.") + sim = qu.Evolution(p0, ham, method='integrate', - int_stop=7) + int_stop=int_step) sim.update_to(trc) def test_evo_at_times(self):