def test_timedelta_arith(sql_with_dts):
    delta = timedelta(days=1)
    dates = pd.Series(pd.date_range('2014-01-01', '2014-02-01'))
    sym = symbol('s', discover(dates))
    assert (
        compute(sym + delta, sql_with_dts, return_type=pd.Series) == dates + delta
    ).all()
    assert (
        compute(sym - delta, sql_with_dts, return_type=pd.Series) == dates - delta
    ).all()
    assert (
        compute(sym - (delta - sym), sql_with_dts, return_type=pd.Series) ==
        dates - (dates - delta)
    ).all()
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_postgresql_compute.py/test_timedelta_arith/swapped operands of `-`