

def test_concurrent_fail(self):
    for sol in ('vode', 'zvode', 'lsoda'):
        f = (lambda t, y: 1.0)
        r = ode(f).set_integrator(sol)
        r.set_initial_value(0, 0)
        r2 = ode(f).set_integrator(sol)
        r2.set_initial_value(0, 0)
        r.integrate((r.t + 0.1))
        r2.integrate((f.t + 0.1))
        assert_raises(RuntimeError, r.integrate, (r.t + 0.1))

dataset/ETHPy150Open scipy/scipy/scipy/integrate/tests/test_integrate.py TestOde.test_concurrent_fail/VarMisuse@94/117 `r2`->`f`