]> granicus.if.org Git - python/commitdiff
Additionally show that a backslash-escaped opening brace is treated as a literal...
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 6 Nov 2016 16:14:48 +0000 (11:14 -0500)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 6 Nov 2016 16:14:48 +0000 (11:14 -0500)
Lib/test/test_fstring.py

index 68aa52663919fad1cdf70cb5721cf898e03ccf0b..45f768ce2b2a552cc3722327170dfcf9e28a9b07 100644 (file)
@@ -628,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}'",