diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 16:01:08 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-11-06 16:01:08 (GMT) |
commit | 45cab8ccdd8577e3653ec80a3cb416fd9608f2ef (patch) | |
tree | c0f63c4cbd772082124de0f772b80edffc222a62 /Lib | |
parent | f0b311bd739d36d62e81dacd27d098c496e8663a (diff) | |
download | cpython-45cab8ccdd8577e3653ec80a3cb416fd9608f2ef.zip cpython-45cab8ccdd8577e3653ec80a3cb416fd9608f2ef.tar.gz cpython-45cab8ccdd8577e3653ec80a3cb416fd9608f2ef.tar.bz2 |
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.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_fstring.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 0af93e0..68aa526 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): |