cpython/Lib/test/test_capi
Miss Islington (bot) 2c09c0ed29
[3.15] gh-141510 Add frozendict fast paths to abstract.c (GH-150692) (#151704)
gh-141510 Add frozendict fast paths to abstract.c (GH-150692)

Add frozendict to the fast paths of PyMapping_GetOptionalItem(),
PyMapping_Keys(), PyMapping_Values(), and PyMapping_Items().
(cherry picked from commit a5568d0eb7)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2026-06-19 09:08:08 +00:00
..
__init__.py gh-116303: Skip test module dependent tests if test modules are unavailable (#117341) 2024-04-03 15:11:36 +02:00
__main__.py
check_config.py gh-120417: Add #noqa: F401 to tests (#120627) 2024-06-18 15:51:47 +00:00
test_abstract.py [3.15] gh-141510 Add frozendict fast paths to abstract.c (GH-150692) (#151704) 2026-06-19 09:08:08 +00:00
test_bytearray.py gh-139871: Add bytearray.take_bytes([n]) to efficiently extract bytes (GH-140128) 2025-11-13 13:19:44 +00:00
test_bytes.py gh-129813, PEP 782: Add PyBytesWriter_Format() (#138824) 2025-09-12 14:21:57 +02:00
test_codecs.py gh-88886: Remove excessive encoding name normalization (GH-137167) 2025-09-09 21:07:21 +03:00
test_complex.py gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703) 2025-04-22 14:18:18 +02:00
test_config.py [3.15] gh-151218: Replace sys.flags in PyConfig_Set() (GH-151402) (#151552) 2026-06-16 16:48:56 +00:00
test_dict.py gh-141510: Raise TypeError in PyDict_SetItem() on frozendict (#145564) 2026-03-11 17:05:09 +01:00
test_emscripten.py gh-124621: Emscripten: Add support for async input devices (GH-136822) 2025-07-19 17:14:29 +02:00
test_eval.py gh-111495: Add more tests on PyEval C APIs (#122789) 2024-08-08 14:16:20 +02:00
test_eval_code_ex.py gh-117694: Improve tests for PyEval_EvalCodeEx() (GH-117695) 2024-04-15 12:44:54 +03:00
test_exceptions.py gh-146480: Override the exception in _PyErr_SetKeyError() (#146486) 2026-03-27 11:20:19 +00:00
test_file.py gh-132162: Add tests for Py_UniversalNewlineFgets() (#132164) 2025-04-24 17:43:48 +02:00
test_float.py gh-143429: Use compile-time NaN encoding detection for test_struct (#143432) 2026-01-09 10:46:48 +00:00
test_frame.py gh-93649: Move PyFrame C API tests to test_capi (#129512) 2025-01-31 13:51:58 +01:00
test_function.py gh-144629: Add test for the PyFunction_GetAnnotations() function (#144630) 2026-02-10 14:38:24 +00:00
test_getargs.py gh-149403: Fix NameError in Lib/test/test_capi/test_getargs.py (#149404) 2026-05-05 09:58:32 +00:00
test_hash.py gh-122854: Add Py_HashBuffer() function (#122855) 2024-08-30 15:42:27 +00:00
test_immortal.py gh-133059: Increase the small positive integer cache to 1024 (GH-133160) 2025-09-24 17:05:30 -04:00
test_import.py gh-144278: Enable overriding sys.implementation's name and cache_tag when building sysmodule.c (GH-144293) 2026-02-10 00:01:17 +00:00
test_list.py gh-146056: Fix list.__repr__() for lists containing NULLs (GH-146129) 2026-03-19 09:59:48 +02:00
test_long.py gh-147988: Initialize digits in long_alloc() in debug mode (#147989) 2026-04-02 11:55:34 +00:00
test_mem.py gh-127314: Don't mention the GIL when calling without a thread state on the free-threaded build (#127315) 2024-12-06 16:58:19 +01:00
test_misc.py [3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606) 2026-06-18 10:17:15 +02:00
test_modsupport.py gh-144175: Add PyArg_ParseArray() function (#144283) 2026-03-06 21:57:44 +00:00
test_module.py gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
test_number.py gh-130104: Call __rpow__ in ternary pow() if necessary (GH-130251) 2025-04-16 18:32:41 +03:00
test_object.py [3.15] gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260) (#151326) 2026-06-11 11:21:26 +00:00
test_opt.py [3.15] gh-149335: Avoid JIT trace buffer asserts with overhead above FITNESS_INITIAL (GH-149633) (#150245) 2026-05-24 12:48:58 +05:30
test_pyatomic.py gh-108337: Add pyatomic.h header (#108701) 2023-08-31 21:41:18 +00:00
test_run.py gh-116180: Check the globals argument in PyRun_* C API (GH-116637) 2024-05-02 16:43:03 +03:00
test_set.py gh-140232: Do not track frozenset objects with immutables (#140234) 2026-01-28 11:27:37 +01:00
test_slots.py [3.15] gh-149044: Improve Py_tp_base[s] docs & error message for non-type bases (GH-151252) (GH-151606) 2026-06-18 10:17:15 +02:00
test_structmembers.py gh-127572: Fix test_structmembers initialization (GH-127577) 2024-12-04 09:58:22 +01:00
test_sys.py gh-108512: Add and use new replacements for PySys_GetObject() (GH-111035) 2025-05-28 20:11:09 +03:00
test_time.py gh-111495: Add tests for PyTuple C API (#118757) 2024-08-26 11:57:52 +02:00
test_tuple.py gh-146056: Fix list.__repr__() for lists containing NULLs (GH-146129) 2026-03-19 09:59:48 +02:00
test_type.py gh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556) 2025-11-05 12:31:42 +01:00
test_unicode.py [3.15] gh-151284: Fix test_capi on UBSan (GH-151286) (#151323) 2026-06-12 13:10:41 +00:00
test_watchers.py gh-149216: Notify type watchers on heap type deallocation (GH-149236) 2026-05-05 11:24:07 +01:00
test_weakref.py [3.15] gh-151130: Add more tests for PyWeakref_* C API (GH-151131) (GH-151140) 2026-06-09 11:37:56 +00:00