cpython/Lib/test/libregrtest
Victor Stinner cb7a629f4d
[3.15] gh-158445: Add C API tests on build information functions (#159515)
* gh-158445: Add C API tests on build information functions (#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 a831abba14)

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

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

---------

Co-authored-by: Stan Ulbrych <stan@python.org>
2026-10-16 11:15:23 +00:00
..
__init__.py
cmdline.py
filter.py
findtests.py
logger.py
main.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
mypy.ini
parallel_case.py
pgo.py
refleak.py
result.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
results.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
run_workers.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
runtests.py
save_env.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
setup.py
single.py [3.15] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155986) 2026-10-10 12:30:44 +03:00
testresult.py
tsan.py
utils.py [3.15] gh-158445: Add C API tests on build information functions (#159515) 2026-10-16 11:15:23 +00:00
win_utils.py
worker.py