Skip to content
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

gh-128911: Add PyImport_GetModuleAttrString() function #128912

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 16, 2025

Remove "pycore_import.h" includes, no longer needed.


📚 Documentation preview 📚: https://cpython-previews--128912.org.readthedocs.build/

Remove "pycore_import.h" includes, no longer needed.
@vstinner
Copy link
Member Author

TODO: Write tests. But PyImport C API is currently not tested, we need maybe to first write tests for existing functions?

vstinner added a commit to vstinner/cpython that referenced this pull request Jan 16, 2025
* Add Modules/_testlimitedcapi/import.c
* Add Lib/test/test_capi/test_import.py
@vstinner
Copy link
Member Author

But PyImport C API is currently not tested, we need maybe to first write tests for existing functions?

I wrote #128915 to add these tests first.

@vstinner vstinner requested a review from a team as a code owner January 17, 2025 21:17
@vstinner
Copy link
Member Author

TODO: Write tests.

Done, I added tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant