Skip to content

[3.14] gh-158445: Add C API tests on build information functions (#159515) - #159525

Merged
vstinner merged 1 commit into
python:3.14from
vstinner:test_build14
Oct 16, 2026
Merged

vstinner merged 1 commit into
python:3.14from
vstinner:test_build14

Conversation

@vstinner

Copy link
Copy Markdown
Member

Add tests on functions:

  • Py_GetBuildInfo()
  • Py_GetCompiler()
  • Py_GetCopyright()
  • Py_GetPlatform()
  • Py_GetVersion()

Changes:

  • Add Modules/_testlimitedcapi.c and Lib/test/test_capi/test_build.py files.
  • Add internal _Py_GetBuiltWithAssert() function.
  • Reimplemenet support.built_with_c_assertions() using _Py_GetBuiltWithAssert() to cover more cases like buildbots using CFLAGS=-UNDEBUG in release mode.

(cherry picked from commit a831abb)

(cherry picked from commit c700121)


(cherry picked from commit cb7a629)

python#159515)

* pythongh-158445: Add C API tests on build information functions (python#158603)

Add tests on functions:

* Py_GetBuildInfo()
* Py_GetCompiler()
* Py_GetCopyright()
* Py_GetPlatform()
* Py_GetVersion()

Changes:

* Add Modules/_testlimitedcapi.c and
  Lib/test/test_capi/test_build.py files.
* Add internal _Py_GetBuiltWithAssert() function.
* Reimplemenet support.built_with_c_assertions() using
  _Py_GetBuiltWithAssert() to cover more cases like buildbots using
  CFLAGS=-UNDEBUG in release mode.

(cherry picked from commit a831abb)

* pythongh-155742: Add support.built_with_c_assertions() (python#156776)

Co-authored-by: Stan Ulbrych <stan@python.org>
(cherry picked from commit c700121)

---------

Co-authored-by: Stan Ulbrych <stan@python.org>
(cherry picked from commit cb7a629)
@vstinner
vstinner requested review from a team and erlend-aasland as code owners October 16, 2026 11:35
@vstinner
vstinner enabled auto-merge (squash) October 16, 2026 11:41
@vstinner
vstinner merged commit 1de946c into python:3.14 Oct 16, 2026
60 checks passed
@vstinner
vstinner deleted the test_build14 branch October 16, 2026 12:03
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