Files
micropython/tests/micropython/heapalloc_fail_tstring.py.exp
T
Koudai Aono bdef10a92b tests: Add full feature and coverage tests for PEP 750 template strings.
Includes corresponding .exp files because this feature is only available in
Python 3.14+.

Tests for `!a` conversion specifier and space after `!` are not included
because they are not supported by MicroPython.

Signed-off-by: Koudai Aono <koxudaxi@gmail.com>
Signed-off-by: Damien George <damien@micropython.org>
2026-03-09 23:47:33 +11:00

43 lines
1.0 KiB
Plaintext

OK: Template creation
OK: Multi string concat
OK: Mixed constructor
OK: Template.__str__()
OK: Template.values
OK: Large values array
OK: Template concatenation
OK: Template iterator
OK: Iterator next
OK: __template__ builtin
OK: Format spec interpolation
OK: Debug format
OK: Conversion + format
OK: s conversion
OK: Complex format spec
OK: Simple expression
OK: Interpolation creation
OK: Template repr
OK: Interpolation repr
=== Heap allocation failure tests ===
OK: Many interpolations heap test
OK: Template str heap test
OK: Template iter heap test
OK: Template concat heap test
OK: Format spec heap test
OK: Debug format heap test
=== Coverage.c heap tests ===
OK: Interpolation creation with heap locked
OK: Parse with heap locked
=== Lexer/Parser allocation tests ===
OK: Complex expression parser allocation
OK: Lexer creation failure
OK: Format spec allocation
OK: Debug format allocation
OK: Many interpolations allocation
Template size limit: Tested via exec in coverage tests
OK: Compile-time parsing under heap lock
=== Tests completed ===