Properly check for invalid conversion character with f-string debugging syntax (#156)

This commit is contained in:
Saiyang Gou
2020-11-18 01:56:04 -08:00
committed by GitHub
parent 634df56d90
commit 034a9e8944
3 changed files with 10 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ def test_valid(code, grammar):
# invalid conversion characters
'f"{1!{a}}"',
'f"{1=!{a}}"',
'f"{!{a}}"',
# The curly braces must contain an expression