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-93649: Split _testcapimodule.c into smaller files #129400

Closed
wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jan 28, 2025

  • 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 vstinner marked this pull request as draft January 31, 2025 13:11
@vstinner vstinner closed this Feb 1, 2025
@vstinner vstinner deleted the split_testcapi branch February 1, 2025 12:58
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