cpython/Modules/_testinternalcapi
Pablo Galindo Salgado 0b8aa89a05
gh-153569: Simplify tokenizer state (#158124)
* Use diagnostic line for missing-brace errors

* Keep implicit prepared newline metadata in the reader

* Reuse parsed formatted string kind in lexer

* Transfer owned tokenizer encoding strings

* Remove unused tokenizer state and redundant branches

* Avoid rescanning partial decoded tokenizer lines

* Reuse prepared tokenizer line terminators for CR detection

* Reuse interactive tokenizer chunks without carriage returns

* Release tokenizer constructor resources on allocation failure

* Narrow interactive newline normalization wrapper

* Close duplicated tokenizer descriptors when fdopen fails

* Preserve cached tokenizer lines when newline allocation fails

* Collect cycles involving tokenizer readline callbacks

* Preserve buffered text when decoding source files

* Clear the transferred syntax error line before cleanup

* Propagate tokenizer column conversion failures

* Allocate parser repetition buffers on first match

* Allocate type comment storage only when needed

* Reuse decoded multiline text when counting token columns

* Skip empty decoded tokenizer chunks

* Check parser array growth before allocating

* Name tokenizer bounds and derive byte lengths from their data

* Set the tokenizer exception when file input size overflows

* gh-153569: Send exact line endings in the REPL test

* Share parser repetition buffer growth

* Fold Unicode input coverage into the existing REPL test

* Keep parser array growth policy private

* Drop obsolete bitmap stress from source discard test

* Preserve input failures while scanning string literals

* fixup! Preserve input failures while scanning string literals

* fixup! fixup! Preserve input failures while scanning string literals

* gh-153569: Remove assertion-only lexer bookkeeping
2026-10-05 14:28:51 +01:00
..
clinic gh-145230: Update lockbench (gh-145231) 2026-02-27 14:09:05 -05:00
complex.c
interpreter.c gh-144712: Export _Py_jit_entry symbol via PyAPI_DATA (#145840) 2026-09-17 14:47:16 +01:00
parts.h gh-153569: Add tokenizer source and cursor primitives (#153587) 2026-08-26 12:38:22 +01:00
pytime.c Remove internal _PyTime_AsLong() function (#141053) 2025-11-05 18:37:06 +01:00
README.txt
set.c
test_cases.c.h gh-142349: Simplify lazy import resolution (#158282) 2026-10-01 16:20:45 +00:00
test_critical_sections.c gh-144513: Skip critical section locking during stop-the-world (gh-144524) 2026-02-06 15:14:08 +00:00
test_lock.c gh-145230: Update lockbench (gh-145231) 2026-02-27 14:09:05 -05:00
test_targets.h gh-145855: Remove the DELETE_ATTR bytecode (GH-146216) 2026-07-06 10:41:47 +01:00
testbytecodes.c gh-142913: Add test case for interpreter generator w/ overridden opcodes (#142911) 2026-01-16 10:33:29 -08:00
tokenizer.c gh-153569: Simplify tokenizer state (#158124) 2026-10-05 14:28:51 +01:00
tuple.c GH-145247: Implement _PyTuple_FromPair() (#145325) 2026-03-10 11:44:20 +01:00
typecache.c gh-145685: per-type method cache implementation (#150160) 2026-07-21 14:11:22 +05:30

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

See Modules/_testcapi/README.txt for guideline when writing C test code.