cpython/Modules/_testcapi
Kirill Podoprigora 225cd55fe6
gh-115417: Remove accidentally left debugging print (#115418)
gh-115417: Remove debugging print
2024-02-13 18:45:37 +01:00
..
clinic
abstract.c
buffer.c gh-114685: Check flags in PyObject_GetBuffer() (GH-114707) 2024-01-31 13:11:35 +02:00
bytearray.c
bytes.c
code.c
codec.c
complex.c
datetime.c
dict.c gh-112066: Add PyDict_SetDefaultRef function. (#112123) 2024-02-06 11:36:23 -05:00
docstring.c
exceptions.c
file.c
float.c
gc.c
getargs.c gh-114101: Correct PyErr_Format arguments in _testcapi module (#114102) 2024-01-16 09:32:39 +01:00
hash.c
heaptype.c
heaptype_relative.c
immortal.c
list.c gh-114329: Add PyList_GetItemRef function (GH-114504) 2024-02-02 14:03:15 +01:00
long.c gh-111140: Adds PyLong_AsNativeBytes and PyLong_FromNative[Unsigned]Bytes functions (GH-114886) 2024-02-12 20:13:13 +00:00
mem.c
numbers.c
parts.h gh-110850: Add PyTime_t C API (GH-115215) 2024-02-12 18:13:10 +01:00
pyatomic.c
pyos.c
README.txt
set.c
structmember.c
sys.c
testcapi_long.h
time.c gh-115417: Remove accidentally left debugging print (#115418) 2024-02-13 18:45:37 +01:00
tuple.c
unicode.c
util.h
vectorcall.c
vectorcall_limited.c gh-113787: Fix refleaks in test_capi (gh-113816) 2024-01-08 08:34:51 -08:00
watchers.c GH-113710: Add a "globals to constants" pass (GH-114592) 2024-02-02 12:14:34 +00:00

Tests in this directory are compiled into the _testcapi extension.
The main file for the extension is Modules/_testcapimodule.c, which
calls `_PyTestCapi_Init_*` from these functions.

General guideline when writing test code for C API.
* Use Argument Clinic to minimise the amount of boilerplate code.
* Add a newline between the argument spec and the docstring.
* If a test description is needed, make sure the added docstring clearly and succinctly describes purpose of the function.
* DRY, use the clone feature of Argument Clinic.
* Try to avoid adding new interned strings; reuse existing parameter names if possible. Use the `as` feature of Argument Clinic to override the C variable name, if needed.