def test_timedelta_arith():
    dates = np.arange('2014-01-01', '2014-02-01', dtype='datetime64')
    delta = np.timedelta64(1, 'D')
    sym = symbol('s', discover(dates))
    assert (compute(sym + delta, dates) == dates + delta).all()
    assert (compute(sym - delta, dates) == dates - delta).all()
    assert (
        compute(sym - (sym - delta), dates) ==
        dates - (dates - delta)
    ).all()
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_numpy_compute.py/test_timedelta_arith/original