mirror of
https://github.com/micropython/micropython.git
synced 2026-03-11 03:10:17 +01:00
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>
This commit is contained in:
committed by
Damien George
parent
a989585147
commit
bdef10a92b
6
tests/basics/string_module_tstring.py
Normal file
6
tests/basics/string_module_tstring.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# Test basic templatelib functionality.
|
||||
# This test requires t-strings support.
|
||||
|
||||
from string.templatelib import Template
|
||||
|
||||
print("templatelib", isinstance(t"hi", Template))
|
||||
Reference in New Issue
Block a user