← 返回首页
gh-93649: Split _testcapimodule.c into smaller files by vstinner · Pull Request #129400 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-93649: Split _testcapimodule.c into smaller files#129400

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:split_testcapi
Closed

gh-93649: Split _testcapimodule.c into smaller files#129400
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:split_testcapi

Conversation

vstinner commented Jan 28, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member
  • Move many functions from _testcapimodule.c into more specific files in Modules/_testcapi/.

  • Add files:

    • Modules/_testcapi/frame.c
    • Modules/_testcapi/function.c
    • Modules/_testcapi/type.c
  • In moved code:

    • Replace get_testerror() with PyExc_AssertionError.
    • Replace raiseTestError() with PyErr_Format(PyExc_AssertionError, ...).

* Move many functions from _testcapimodule.c into more specific files in Modules/_testcapi/. * Add files: * Modules/_testcapi/frame.c * Modules/_testcapi/function.c * Modules/_testcapi/type.c * In moved code: * Replace get_testerror() with PyExc_AssertionError. * Replace raiseTestError() with PyErr_Format(PyExc_AssertionError, ...).
vstinner marked this pull request as draft January 31, 2025 13:11

vstinner commented Feb 1, 2025

Copy link
Copy Markdown
Member Author

vstinner closed this Feb 1, 2025
vstinner deleted the split_testcapi branch February 1, 2025 12:58
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
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

Footer

© 2026 GitHub, Inc.