gh-111495: Add tests for PyNumber C API #111996
gh-111495: Add tests for PyNumber C API
cbca6588
Remove inaccessible code (PyLong_AsSsize_t raises OverflowError)
0d95d578
Drop checks for broken float subclasses (like for PyNumber_Long in 31…
7b8adb48
+ tests with sets for intersection/union/etc
4665f256
Use macroses
9e149056
Merge branch 'main' into capi-number-tests
c0f40511
Merge branch 'main' into capi-number-tests
3a7a4c40
skirpichev
force pushed
from
dd182df2
to
daf4b6fa
1 year ago
Ternary ops (currently only pow/ipow) don't use __r*__ dunders
788e9c22
More tests
8cf4429a
skirpichev
force pushed
from
daf4b6fa
to
8cf4429a
1 year ago
Merge branch 'main' into capi-number-tests
91c68a7f
More tests
9f6fd152
Use BINARY_FUNC macro for some remaining ops
9f5b7a12
Add UNARY_FUNC macro to define unary PyNumber_* functions
2675738d
Fix typo
2bc6bc75
skirpichev
force pushed
from
15f8a7b7
to
2bc6bc75
1 year ago
Make last argument optional for PyNumber_Power/InPlacePower
49d673ba
More tests
b2dda899
Remove number_check() from _testcapi/abstract.c, move tests
b86d2eb2
skirpichev
marked this pull request as ready for review 1 year ago
address review:
0fbbba9a
skirpichev
marked this pull request as draft 1 year ago
Merge branch 'main' into capi-number-tests
bcf0c207
some cleanup for support classes
9aae51b1
+ cleanup
d052280e
use instead generic tests for unary functions
c04679c3
+1
efe4aab1
use instead generic tests for binary functions + misc tests
4d96d35a
Merge branch 'main' into capi-number-tests
b00365ef
skirpichev
marked this pull request as ready for review 1 year ago
+1
74abc5d9
skirpichev
force pushed
from
53624699
to
74abc5d9
1 year ago
Merge branch 'main' into capi-number-tests
d62b8025
Merge branch 'master' into capi-number-tests
7ba5bb06
Merge branch 'master' into capi-number-tests
76aac6f5
Include only basic tests for unary/binary ops (with builtin types)
de8f7f31
vstinner
approved these changes
on 2024-08-09
Merge branch 'master' into capi-number-tests
bd3435bd
address review: sort imports
ab084305
address review: split test_misc()
0bccf1c2
Update Lib/test/test_capi/test_number.py
abde55bc
vstinner
approved these changes
on 2024-08-09
address review: use import_helper for _testbuffer
f4be9c58
fix typo
86df16cc
drop support classes with __trunc__ dunder
c620c720
address review: skip two test if no ndarray
556b23bc
vstinner
merged
2f20f5a9
into main 1 year ago
skirpichev
deleted the capi-number-tests branch 1 year ago
Login to write a write a comment.
Login via GitHub