Files
ECC/tests/scripts
montjeffrey e56624d8f1 test(clv2): catch 3.8 and 3.12 f-string forms in the compat guard
ast.parse(feature_version=...) on current Pythons goes no lower than the
3.7 grammar, and it accepts f-string forms that older interpreters reject:
the self-documenting {x=} (3.8) and, from 3.12, reused quotes, backslashes
and comments inside a replacement field. ast does not record these, so
the guard now reads each f-string's own source text. The sample file
proves both kinds are flagged and that 3.6-valid fields ({n == 1},
{n!r:>4}, escaped {{n=}}) are not.
2026-11-04 11:45:32 -05:00
..