cpython/Lib/test/test_capi
Petr Viktorin 879f4546bf
gh-110850: Add PyTime_t C API (GH-115215)
* gh-110850: Add PyTime_t C API

Add PyTime_t API:

* PyTime_t type.
* PyTime_MIN and PyTime_MAX constants.
* PyTime_AsSecondsDouble(), PyTime_Monotonic(),
  PyTime_PerfCounter() and PyTime_GetSystemClock() functions.

Co-authored-by: Victor Stinner <vstinner@python.org>
2024-02-12 18:13:10 +01:00
..
__init__.py
__main__.py
check_config.py gh-104621: Check for Incompatible Extensions in import_find_extension() (gh-107184) 2023-07-27 15:08:38 -06:00
test_abstract.py Add more C API tests (GH-112522) 2023-11-29 17:37:05 +02:00
test_bytearray.py gh-111495: Test C API functions with extreme sizes and indices (GH-111631) 2023-11-04 11:40:46 +02:00
test_bytes.py gh-111495: Test C API functions with extreme sizes and indices (GH-111631) 2023-11-04 11:40:46 +02:00
test_codecs.py gh-99593: Add tests for Unicode C API (part 3) (GH-104728) 2023-07-10 14:04:34 +03:00
test_complex.py gh-109598: make PyComplex_RealAsDouble/ImagAsDouble use __complex__ (GH-109647) 2024-01-15 16:04:17 +01:00
test_dict.py gh-112066: Add `PyDict_SetDefaultRef` function. (#112123) 2024-02-06 11:36:23 -05:00
test_eval_code_ex.py gh-101072: support default and kw default in PyEval_EvalCodeEx for 3.11+ (#101127) 2023-02-07 10:34:21 +01:00
test_exceptions.py gh-108082: Add PyErr_FormatUnraisable() function (GH-111086) 2023-10-31 23:42:44 +02:00
test_float.py gh-111765: Move old PyFloat_* tests to Lib/test/test_capi/test_float.py (GH-111766) 2023-11-07 13:40:58 +02:00
test_getargs.py gh-107944: Improve error message for getargs with bad keyword arguments (#114792) 2024-02-08 01:04:41 -08:00
test_hash.py gh-111545: Add Py_HashPointer() function (#112096) 2023-12-06 15:09:22 +01:00
test_immortal.py gh-84436: Add integration C API tests for immortal objects (gh-103962) 2023-05-03 00:05:30 +09:00
test_list.py gh-114329: Add `PyList_GetItemRef` function (GH-114504) 2024-02-02 14:03:15 +01:00
test_long.py gh-110628: Add tests for PyLong C API (GH-110629) 2023-10-14 08:53:57 +03:00
test_mem.py gh-112532: Require mimalloc in `--disable-gil` builds (gh-112883) 2023-12-12 09:04:48 +09:00
test_misc.py gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) 2023-12-23 09:56:30 +00:00
test_opt.py GH-114695: Add `sys._clear_internal_caches` (GH-115152) 2024-02-12 09:04:36 +00:00
test_pyatomic.py gh-108337: Add pyatomic.h header (#108701) 2023-08-31 21:41:18 +00:00
test_set.py gh-110525: Add tests for internal `set` CAPI (GH-110630) 2023-10-10 19:00:05 +03:00
test_structmembers.py gh-115011: Improve support of __index__() in setters of members with unsigned integer type (GH-115029) 2024-02-11 12:45:58 +02:00
test_sys.py gh-106672: C API: Report indiscriminately ignored errors (GH-106674) 2023-11-07 15:58:04 +02:00
test_time.py gh-110850: Add PyTime_t C API (GH-115215) 2024-02-12 18:13:10 +01:00
test_unicode.py gh-111089: Revert PyUnicode_AsUTF8() changes (#111833) 2023-11-07 22:36:13 +00:00
test_watchers.py GH-113710: Add a "globals to constants" pass (GH-114592) 2024-02-02 12:14:34 +00:00