]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93649: Move _testcapi tests to specific files (#129544)
authorVictor Stinner <vstinner@python.org>
Sat, 1 Feb 2025 12:39:16 +0000 (13:39 +0100)
committerGitHub <noreply@github.com>
Sat, 1 Feb 2025 12:39:16 +0000 (13:39 +0100)
commit71ae93374defd192e5e88fe0912eff4f8e56f286
treeada0ba64fe1b22397dcc5699efe581ab636f0d66
parent7d0521d5fc32f4837257e89e6ead652223ecfada
gh-93649: Move _testcapi tests to specific files (#129544)

Move many functions from _testcapimodule.c into more specific files
in Modules/_testcapi/.

In moved code:

* Replace get_testerror() with PyExc_AssertionError.
* Replace raiseTestError() with
  PyErr_Format(PyExc_AssertionError, ...).
Lib/test/test_capi/test_misc.py
Lib/test/test_capi/test_object.py
Modules/_testcapi/dict.c
Modules/_testcapi/float.c
Modules/_testcapi/list.c
Modules/_testcapi/mem.c
Modules/_testcapi/object.c
Modules/_testcapi/set.c
Modules/_testcapimodule.c