diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-03-09 08:33:47 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-03-09 09:03:25 -0500 |
| commit | 32647cd9b41c26003df0bdc385353f6a24b727d7 (patch) | |
| tree | ea6d7df1de060d757a3004a680797559b742d4db /tests | |
| parent | acd7b8932f9ae4dc03d28ebcf13795de5e913368 (diff) | |
lexer: catch concatenation of f'' and '' strings
This turns the "edge case" into a parse-time error.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/string_pep498_fstring.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/basics/string_pep498_fstring.py b/tests/basics/string_pep498_fstring.py index f4e76c831..c645a730c 100644 --- a/tests/basics/string_pep498_fstring.py +++ b/tests/basics/string_pep498_fstring.py @@ -104,10 +104,10 @@ assert f'result={foo()}' == 'result={result}'.format(result=foo()) x = 10 y = 'hi' assert (f'h' f'i') == 'hi' -assert (f'h' 'i') == 'hi' -assert ('h' f'i') == 'hi' +#assert (f'h' 'i') == 'hi' +#assert ('h' f'i') == 'hi' assert f'{x:^4}' == ' 10 ' -assert ('a' 'b' f'{x}' f'str<{y:^4}>' 'd' 'e') == 'ab10str< hi >de' +#assert ('a' 'b' f'{x}' f'str<{y:^4}>' 'd' 'e') == 'ab10str< hi >de' # Other tests assert f'{{{4*10}}}' == '{40}' |
