Skip to content

Masking and overflow checks for datetimeindex and timedeltaindex ops #18020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 4, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove invalid test
  • Loading branch information
jbrockmendel committed Oct 29, 2017
commit de663a1837faee4e61ea8d7ead6768e0a094e1e7
12 changes: 0 additions & 12 deletions pandas/tests/indexes/test_datetimelike_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ def test_timedeltaindex_add_timestamp_nat_masking(self):
res2 = tdinat + tspos
assert res2[1] is NaT

def test_timedeltaindex_sub_timestamp_nat_masking(self):
tdinat = pd.to_timedelta(['24658 days 11:15:00', 'NaT'])

# tsneg.value < 0, tspos.value > 0
tsneg = Timestamp('1950-01-01')
tspos = Timestamp('1980-01-01')

res1 = tdinat - tsneg
assert res1[1] is NaT
res2 = tdinat - tspos
assert res2[1] is NaT

def test_timedeltaindex_add_timestamp_overflow(self):
tdimax = pd.to_timedelta(['24658 days 11:15:00', Timedelta.max])
tdimin = pd.to_timedelta(['24658 days 11:15:00', Timedelta.min])
Expand Down