Skip to content

Commit bce8549

Browse files
committed
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>
1 parent 85e8f61 commit bce8549

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/feature_check/tstring.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# check whether t-strings (PEP-750) are supported
22

3-
# TODO remove this check when micropython-lib's string extends ustring
4-
from string.templatelib import Template, Interpolation
5-
63
a = 1
74
t = t"a={a}"
85
print("tstring")

0 commit comments

Comments
 (0)