mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Add an additional test with a newline, one that's very similar to test_parens_in_expressions, but because the newline is not a literal newline, but a backslash en, this error is triggered.
This commit is contained in:
parent
f0b311bd73
commit
45cab8ccdd
1 changed files with 1 additions and 0 deletions
|
@ -378,6 +378,7 @@ f'{a * x()}'"""
|
||||||
r"rf'{\t3}'",
|
r"rf'{\t3}'",
|
||||||
r"rf'{\}'",
|
r"rf'{\}'",
|
||||||
r"""rf'{"\N{LEFT CURLY BRACKET}"}'""",
|
r"""rf'{"\N{LEFT CURLY BRACKET}"}'""",
|
||||||
|
r"f'{\n}'",
|
||||||
])
|
])
|
||||||
|
|
||||||
def test_no_escapes_for_braces(self):
|
def test_no_escapes_for_braces(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue