Add verbose error message for testing the number of addUpdateContextState() calls per integrator.
@@ -202,7 +202,9 @@ def test_single_force_update():
if step_type == 5:
num_force_update += 1
- assert num_force_update == 1
+
+ msg = "Integrator '%s' has %d calls to addUpdateContextState(), while there should be only one." % (integrator_name, num_force_update)
+ assert num_force_update == 1, msg
def test_vvvr_shadow_work_accumulation():
