BUG: Fix timedelta64+Timestamp, closes #24775 by jbrockmendel · Pull Request #26916 · pandas-dev/pandas (original) (raw)
my point is to also include pd.Timedelta here as well via parameterization. I suspect we already test this elsewhere, so rather than add a one-off, should add elsewhere (or simply combine / move them here if this is the final destination).
(pandas) bash-3.2$ grep -r _radd pandas/tests/ --include '*.py'
pandas/tests//tseries/offsets/test_offsets.py: def test_radd(self):
pandas/tests//frame/test_query_eval.py: for op_str, op, rop in [('+', '__add__', '__radd__'),
pandas/tests//arithmetic/test_datetime64.py: if op_str not in ['__add__', '__radd__', '__sub__']:
pandas/tests//arithmetic/test_datetime64.py: if op_str not in ['__add__', '__radd__', '__sub__', '__rsub__']:
pandas/tests//arithmetic/test_datetime64.py: @pytest.mark.parametrize('op', ['__add__', '__radd__',
pandas/tests//arithmetic/test_timedelta64.py: # Tests for timedelta64[ns] __add__, __sub__, __radd__, __rsub__
pandas/tests//arithmetic/test_numeric.py: # __add__, __sub__, __radd__, __rsub__, __iadd__, __isub__
pandas/tests//arithmetic/test_numeric.py: def test_series_frame_radd_bug(self):
pandas/tests//arithmetic/test_object.py: def test_objarr_radd_str(self, box):
pandas/tests//arithmetic/test_object.py: def test_objarr_radd_str_invalid(self, dtype, data, box):
pandas/tests//arithmetic/test_object.py: def test_series_with_dtype_radd_timedelta(self, dtype):
pandas/tests//scalar/timedelta/test_arithmetic.py: __add__, __radd__,
pandas/tests//scalar/timedelta/test_arithmetic.py: # datetime + Timedelta does _not_ call Timedelta.__radd__,
pandas/tests//indexes/test_category.py: (lambda idx: ['a', 'b'] + idx, '__radd__'),