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


(cherry picked from commit c700121b15)

---------


(cherry picked from commit cb7a629f4d)

Co-authored-by: Stan Ulbrych <stan@python.org>
2026-10-16 12:03:56 +00:00
..
__init__.py
cmdline.py [3.14] gh-146410: Add --pythoninfo option to regrtest (GH-146413) (#158606) 2026-10-05 09:54:18 +08:00
filter.py
findtests.py [3.14] gh-158618: Split test_free_threading into per-module tests to avoid timeouts (GH-158620) (#158662) 2026-10-03 16:38:14 +00:00
logger.py
main.py [3.14] gh-146410: Add --pythoninfo option to regrtest (GH-146413) (#158606) 2026-10-05 09:54:18 +08:00
mypy.ini
parallel_case.py
pgo.py
refleak.py [3.14] gh-157628: regrtest: Only report a leak if all runs leak one FD (GH-157629) (GH-157753) (#159088) 2026-10-09 22:05:12 +00:00
result.py [3.14] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155987) 2026-08-18 11:30:41 +03:00
results.py [3.14] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155987) 2026-08-18 11:30:41 +03:00
run_workers.py [3.14] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155987) 2026-08-18 11:30:41 +03:00
runtests.py [3.14] gh-143553: Add support for parametrized resources in regrtests (GH-143554) (GH-143555) 2026-01-08 18:12:33 +02:00
save_env.py [3.14] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155987) 2026-08-18 11:30:41 +03:00
setup.py [3.14] gh-154167: Fix test suite hang when SIGINT is ignored (GH-154168) (GH-154266) 2026-07-20 14:56:20 +00:00
single.py [3.14] gh-132581: Report why the execution environment was altered (GH-155294) (GH-155987) 2026-08-18 11:30:41 +03:00
testresult.py
tsan.py [3.14] gh-153932: protect read of en_index during enumerate.reduce (GH-154118) (GH-154129) 2026-07-19 17:01:07 +02:00
utils.py [3.14] gh-158445: Add C API tests on build information functions (#159515) (#159525) 2026-10-16 12:03:56 +00:00
win_utils.py
worker.py [3.14] gh-146202: Create tmp_dir in regrtest worker (GH-146347) (#146349) 2026-03-24 00:13:09 +00:00