Files
micropython/tests/feature_check/tstring.py
T
Damien George bce854928d tests/feature_check/tstring.py: Remove check for string.templatelib.
If a port enables t-strings then it is required to have the
`string.templatelib` package (at least to run the tests).  That's
automatically the case if `MICROPY_PY_TSTRINGS` is enabled.

If a port freezes in the micropython-lib `string` extension package then
the latest version of this package will include the built-in
`string.templatelib` classes.  So the feature check for t-strings no longer
needs to check if they are available.

Signed-off-by: Damien George <damien@micropython.org>
2026-03-24 23:56:05 +11:00

6 lines
87 B
Python

# check whether t-strings (PEP-750) are supported
a = 1
t = t"a={a}"
print("tstring")