-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
Add more C API tests #111495
Comments
@serhiy-storchaka, initial set of C API tests for PyComplex (only for changed functions) was added in #109647 |
Yes, there are also some tests for PyLong and PyNumber, and maybe other parts of the C API. But we should test the full C API, or at least document what is not tested. And it is better to group tests by the prefix, so it is clear where to find tests. |
If you want to work on adding tests to the part of the C API, say it here to avoid duplicating the work of other people. I finished work on PyBytes and PyByteArray and am not currently working on any of the above. |
@serhiy-storchaka, I will factor out tests PyComplex_RealAsDouble/ImagAsDouble from #109647 and tests for other functions for PyComplexType. (BTW, in #111496 I don't see actual tests, only interfaces. Tests in my pr were modeled from pack/unpack tests in test_float.py.) |
Good catch, @skirpichev. I forgot to add the actual test files. |
@serhiy-storchaka , I would like to contribute tests to PyTuple and PyList C API |
Great. Look at existing PySequence tests in |
With multiple prs, Modules/Setup.stdlib.in will produce merge conflicts. (I already have fixed this a lot in #109647.) I will create a pr to add stub files for testing modules. Edit: Then I'll add missing tests for PyFloat's C API. |
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
Good idea! |
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
…GH-111586) This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue. (cherry picked from commit 33ed5fa) Co-authored-by: Sergey B Kirpichev <[email protected]>
I am working on |
I've updated the bullet point list. Out of the remaining tasks, there is only the Codec API that needs to have more tests. The PyNumber and PyFile API seem to have PRs (I didn't check whether they are up-to-date or not). Can I work on the Codec API? (I've never added tests to the C API so I want to learn it with this) |
I just merged the PyNumber PR.
You can go ahead. |
The suggestion for "print >> value" was removed recently: commit 9375b9c.
(cherry picked from commit dbc1752) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: kalyanr <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit 2f20f5a) Co-authored-by: Sergey B Kirpichev <[email protected]>
(cherry picked from commit 2f20f5a) Co-authored-by: Sergey B Kirpichev <[email protected]>
(cherry picked from commit dbc1752) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: kalyanr <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit dbc1752) Co-authored-by: kalyanr <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
Signed-off-by: kalyanr <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
(cherry picked from commit dbc1752) Co-authored-by: kalyanr <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Linked PRs
PyFile_*
CAPI tests #111709PyCodec_*
C API #123343The text was updated successfully, but these errors were encountered: