/
githubmirror
/
cpython
ОбзорДокументацияВойти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
cpython/
Modules/_testcapi/
..
clinic

gh-130317: Fix test_pack_unpack_roundtrip() and add docs (#133204)

год назад
README.txt

gh-104469: Update README.txt for _testcapi (gh-104529)

3 года назад
abstract.c

gh-135075: Make PyObject_SetAttr() fail with NULL value and exception (#136180)

год назад
buffer.c

gh-140557: Force alignment of empty `bytearray` and `array.array` buffers (GH-140559)

7 месяцев назад
bytes.c

gh-129813: Fix PyBytesWriter tests (#139892)

10 месяцев назад
code.c

gh-128911: Use PyImport_ImportModuleAttr() function (#129657)

2 года назад
codec.c

gh-111495: Add tests for `PyCodec_*` C API (#123343)

2 года назад
complex.c

gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703)

год назад
config.c

gh-107954, PEP 741: Add PyConfig_Get()/Set() functions (#123472)

2 года назад
datetime.c

gh-115754: Use Py_GetConstant(Py_CONSTANT_EMPTY_STR) (#125194)

2 года назад
dict.c

gh-141510: Test frozendict C API (#145081)

6 месяцев назад
docstring.c

gh-111178: remove redundant casts for functions with correct signatures (#131673)

год назад
exceptions.c

GH-137623: Use an AC decorator for docstring line length enforcement (#137690)

год назад
file.c

gh-132162: Add tests for Py_UniversalNewlineFgets() (#132164)

год назад
float.c

gh-143429: Use compile-time NaN encoding detection for test_struct (#143432)

7 месяцев назад
frame.c

gh-93649: Move PyFrame C API tests to test_capi (#129512)

2 года назад
function.c

gh-144629: Add test for the PyFunction_GetAnnotations() function (#144630)

6 месяцев назад
gc.c

gh-111178: remove redundant casts for functions with correct signatures (#131673)

год назад
getargs.c

gh-68114: Fix handling for removed PyArg_ParseTuple 'w' formatters (GH-8204)

2 года назад
hash.c

gh-122854: Add Py_HashBuffer() function (#122855)

2 года назад
heaptype.c

gh-145921: Add "_DuringGC" functions for tp_traverse (GH-145925)

4 месяца назад
immortal.c

gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (#145901)

4 месяца назад
import.c

gh-151510: Fix __lazy_import__ without frame (#151511)

2 месяца назад
list.c

gh-93649: Move _testcapi tests to specific files (#129544)

2 года назад
long.c

gh-147988: Initialize digits in long_alloc() in debug mode (#147989)

4 месяца назад
mem.c

gh-151297: Fix undefined behavior in `_PyObject_MiRealloc` (GH-151358)

2 месяца назад
modsupport.c

gh-144175: Add PyArg_ParseArray() function (#144283)

5 месяцев назад
module.c

gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)

3 месяца назад
monitoring.c

gh-79315: Remove Include/pylock.h and Include/monitoring.h (#139731)

10 месяцев назад
numbers.c

gh-111495: Add tests for PyNumber C API (#111996)

2 года назад
object.c

gh-148829: Make sentinels' repr and module customizable (#149654)

3 месяца назад
parts.h

gh-151130: Add more tests for PyWeakref_* C API (GH-151131)

2 месяца назад
pyatomic.c

gh-121368: Fix seq lock memory ordering in _PyType_Lookup (#121388)

2 года назад
run.c

gh-152132: Test Py_CompileString() in test_capi.test_run (#153470)

месяц назад
set.c

gh-93649: Move _testcapi tests to specific files (#129544)

2 года назад
structmember.c

gh-127572: Fix `test_structmembers` initialization (GH-127577)

2 года назад
time.c

gh-136300: Modify C tests to conform to PEP-737 (GH-136301)

год назад
tuple.c

gh-111489: Add PyTuple_FromArray() function (#139691)

10 месяцев назад
type.c

gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)

3 месяца назад
unicode.c

Improve tests for the PyUnicodeWriter C API (GH-146157)

5 месяцев назад
util.h

gh-111495: Add tests for `PyCodec_*` C API (#123343)

2 года назад
vectorcall.c

GH-137623: Use an AC decorator for docstring line length enforcement (#137690)

год назад
watchers.c

gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233)

3 месяца назад
weakref.c

gh-151130: Add more tests for PyWeakref_* C API (GH-151131)

2 месяца назад
README.txt
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.