

def test_odeint_trivial_time():
    y0 = 1
    t = [0]
    (y, info) = odeint((lambda y, t: (- y)), y0, t, full_output=True)
    assert_array_equal(y, np.array([[y0]]))

dataset/ETHPy150Open scipy/scipy/scipy/integrate/tests/test_integrate.py test_odeint_trivial_time/original