summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-11-06 16:16:42 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2016-11-06 16:16:42 (GMT)
commit32d93b2dc8e73af1965ec1986a84fefea17f30e4 (patch)
tree0dee26d415a665e1ce64bb41eca83a1070426283
parente26e20db95978a9401084f1dd7de75159ac98e25 (diff)
parentda25abf7121d8fb330da51f9bca8847be05f56f8 (diff)
downloadcpython-32d93b2dc8e73af1965ec1986a84fefea17f30e4.zip
cpython-32d93b2dc8e73af1965ec1986a84fefea17f30e4.tar.gz
cpython-32d93b2dc8e73af1965ec1986a84fefea17f30e4.tar.bz2
Merge with 3.6
-rw-r--r--Lib/test/test_fstring.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
index 0af93e0..45f768c 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):
@@ -627,6 +628,7 @@ f'{a * x()}'"""
"f'}'",
"f'x}'",
"f'x}x'",
+ r"f'\u007b}'",
# Can't have { or } in a format spec.
"f'{3:}>10}'",