cpython/Lib/test/test_capi
Sam Gross 45bc120d45
gh-130519: Fix crash in QSBR when destructor reenters QSBR (gh-130553)
The `free_work_item()` function in QSBR may call arbitrary code via
Python object destructors, which may reenter the QSBR code. Reorder
the processing of work items to be robust to reentrancy.

Also fix the TODO for the out of memory situation.
2025-02-26 14:55:15 -05:00
..
__init__.py
__main__.py
check_config.py
test_abstract.py gh-71339: Use new assertion methods in test_capi (GH-129053) 2025-01-20 14:32:27 +02:00
test_bytearray.py gh-129559: Add bytearray.resize() (GH-129560) 2025-02-05 11:33:17 -08:00
test_bytes.py gh-121645: Add PyBytes_Join() function (#121646) 2024-08-30 12:57:33 +00:00
test_codecs.py gh-126004: Remove redundant safeguards for codecs handlers tests (#127680) 2025-01-23 16:06:16 +01:00
test_complex.py gh-69639: Add mixed-mode rules for complex arithmetic (C-like) (GH-124829) 2024-11-26 17:57:39 +02:00
test_config.py gh-126925: Modify how iOS test results are gathered (#127592) 2024-12-09 13:28:57 +08:00
test_dict.py
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
test_exceptions.py gh-123378: Ensure results of PyUnicode*Error_Get{Start,End} are clamped (GH-123380) 2024-12-04 14:13:52 +01:00
test_file.py gh-111495: Add PyFile tests (#129449) 2025-01-30 18:05:32 +01:00
test_float.py
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-93649: Add Modules/_testcapi/function.c file (#129521) 2025-01-31 16:02:50 +01:00
test_getargs.py gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) 2024-09-08 16:01:54 +03:00
test_hash.py gh-122854: Add Py_HashBuffer() function (#122855) 2024-08-30 15:42:27 +00:00
test_immortal.py gh-128509: Add PyUnstable_IsImmortal for finding immortal objects (GH-129182) 2025-01-27 14:36:33 +01:00
test_import.py gh-128911: Add PyImport_ImportModuleAttr() function (#128912) 2025-01-30 11:17:29 +00:00
test_list.py gh-111495: Add tests for PyTuple C API (#118757) 2024-08-26 11:57:52 +02:00
test_long.py gh-102471, PEP 757: Add PyLong import and export API (#121339) 2024-12-13 14:24:48 +01: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 GH-130396: Use computed stack limits on linux (GH-130398) 2025-02-25 09:24:48 +00:00
test_number.py gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) 2025-02-17 00:07:10 +00:00
test_object.py gh-130519: Fix crash in QSBR when destructor reenters QSBR (gh-130553) 2025-02-26 14:55:15 -05:00
test_opt.py GH-129715: Remove _DYNAMIC_EXIT (GH-129716) 2025-02-07 11:41:17 -08:00
test_pyatomic.py
test_run.py
test_set.py gh-111495: Add tests for PyTuple C API (#118757) 2024-08-26 11:57:52 +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-71339: Use new assertion methods in test_capi (GH-129053) 2025-01-20 14:32:27 +02: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-127058: Make PySequence_Tuple safer and probably faster. (#127758) 2024-12-11 14:02:59 +00:00
test_type.py gh-93649: Add Modules/_testcapi/type.c file (#129516) 2025-01-31 15:03:54 +01:00
test_unicode.py gh-128013: fix data race in PyUnicode_AsUTF8AndSize on free-threading (#128021) 2024-12-19 17:08:32 +05:30
test_watchers.py gh-125900: Clean-up logic around immortalization in free-threading (#125901) 2024-10-24 18:09:59 -04:00