From: Jason R. Coombs Date: Sun, 6 Nov 2016 16:01:08 +0000 (-0500) Subject: Add an additional test with a newline, one that's very similar to test_parens_in_expr... X-Git-Tag: v3.6.0b4~149 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45cab8ccdd8577e3653ec80a3cb416fd9608f2ef;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 0af93e088fea..68aa52663919 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -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):