-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
gh-111495: Add tests for PyNumber C API #111996
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
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
cbca658
gh-111495: Add tests for PyNumber C API
skirpichev 0d95d57
Remove inaccessible code (PyLong_AsSsize_t raises OverflowError)
skirpichev 7b8adb4
Drop checks for broken float subclasses (like for PyNumber_Long in 31…
skirpichev 4665f25
+ tests with sets for intersection/union/etc
skirpichev 9e14905
Use macroses
skirpichev c0f4051
Merge branch 'main' into capi-number-tests
skirpichev 3a7a4c4
Merge branch 'main' into capi-number-tests
skirpichev 788e9c2
Ternary ops (currently only pow/ipow) don't use __r*__ dunders
skirpichev 8cf4429
More tests
skirpichev 91c68a7
Merge branch 'main' into capi-number-tests
skirpichev 9f6fd15
More tests
skirpichev 9f5b7a1
Use BINARY_FUNC macro for some remaining ops
skirpichev 2675738
Add UNARY_FUNC macro to define unary PyNumber_* functions
skirpichev 2bc6bc7
Fix typo
skirpichev 49d673b
Make last argument optional for PyNumber_Power/InPlacePower
skirpichev b2dda89
More tests
skirpichev b86d2eb
Remove number_check() from _testcapi/abstract.c, move tests
skirpichev 0fbbba9
address review:
skirpichev bcf0c20
Merge branch 'main' into capi-number-tests
skirpichev 9aae51b
some cleanup for support classes
skirpichev d052280
+ cleanup
skirpichev c04679c
use instead generic tests for unary functions
skirpichev efe4aab
+1
skirpichev 4d96d35
use instead generic tests for binary functions + misc tests
skirpichev b00365e
Merge branch 'main' into capi-number-tests
skirpichev 74abc5d
+1
skirpichev d62b802
Merge branch 'main' into capi-number-tests
skirpichev 7ba5bb0
Merge branch 'master' into capi-number-tests
skirpichev 76aac6f
Merge branch 'master' into capi-number-tests
skirpichev de8f7f3
Include only basic tests for unary/binary ops (with builtin types)
skirpichev bd3435b
Merge branch 'master' into capi-number-tests
skirpichev ab08430
address review: sort imports
skirpichev 0bccf1c
address review: split test_misc()
skirpichev abde55b
Update Lib/test/test_capi/test_number.py
skirpichev f4be9c5
address review: use import_helper for _testbuffer
skirpichev 86df16c
fix typo
skirpichev c620c72
drop support classes with __trunc__ dunder
skirpichev 556b23b
address review: skip two test if no ndarray
skirpichev 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
use instead generic tests for unary functions
- Loading branch information
commit c04679c3b68c9957a0b1c2440c52838ac62a72c9
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
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.