-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Add/reorganize scalar Timedelta tests #46936
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
Closed
Closed
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
aa47af9
add more Timedelta tests
patrickmckenna 0957c27
whoops, toolz is optional
patrickmckenna 89b2431
s/OverflowError/OutOfBoundsTimedelta where relevant
patrickmckenna 51eb151
catch correct error in Timedelta sub
patrickmckenna 36d37dc
extract overflow-checking wrapper fcn, add tests
patrickmckenna ef09bb9
Merge remote-tracking branch 'upstream/main' into td-constructor
patrickmckenna d53d1ce
simplify Timedelta ctor, fix tests
patrickmckenna e788c25
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna d995243
test, linter fixes
patrickmckenna 43291f8
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna 4247286
add wrapper for overflow-checked int/float ops
patrickmckenna 33203b3
wip: lots more tests, consolidate overflow checking
patrickmckenna 1e73327
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna a72d4e0
more test cleanup
patrickmckenna 7a7418a
handle older and newer cython semantics
patrickmckenna b5e62d6
misc. small fixes
patrickmckenna 42e597c
DRY up tests
patrickmckenna 36eb26f
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna c9e209e
consolidate Timedelta creation
patrickmckenna 4a73340
remove unused stuff
patrickmckenna 1bc2741
describe current organization, PR feedback
patrickmckenna f00539f
use preferred names
patrickmckenna 99f927e
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna d0967da
perf optimizations
patrickmckenna 0dbf13d
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna a913282
Merge remote-tracking branch 'upstream/main' into td64-tests
patrickmckenna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from numpy cimport int64_t | ||
|
||
|
||
cpdef int64_t calc_int_int(object op, int64_t a, int64_t b) except? -1 | ||
cpdef int64_t calc_int_float(object op, int64_t a, double b) except? -1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.