[Python-checkins] cpython (3.6): Add an additional test with a newline, one that's very similar to
jason.coombs
python-checkins at python.org
Sun Nov 6 11:14:59 EST 2016
https://hg.python.org/cpython/rev/b04347ffa283
changeset: 104924:b04347ffa283
branch: 3.6
parent: 104920:d06a6b0fd992
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sun Nov 06 11:01:08 2016 -0500
summary:
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.
files:
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
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -378,6 +378,7 @@
r"rf'{\t3}'",
r"rf'{\}'",
r"""rf'{"\N{LEFT CURLY BRACKET}"}'""",
+ r"f'{\n}'",
])
def test_no_escapes_for_braces(self):
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list