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:
Jason R. Coombs 2016-11-06 11:01:08 -05:00
parent f0b311bd73
commit 45cab8ccdd

View file

@ -378,6 +378,7 @@ f'{a * x()}'"""
r"rf'{\t3}'",
r"rf'{\}'",
r"""rf'{"\N{LEFT CURLY BRACKET}"}'""",
r"f'{\n}'",
])
def test_no_escapes_for_braces(self):