Revision on fstring issues (#100)

* f-string expression part cannot include a backslash
 * failing example `f"{'\n'}"` for tests
This commit is contained in:
Jarry Shaw
2020-01-10 04:49:34 +08:00
committed by Dave Halter
parent 55531ab65b
commit 84874aace3
2 changed files with 8 additions and 0 deletions

View File

@@ -281,6 +281,9 @@ if sys.version_info >= (3, 6):
# Same as above, but for f-strings.
'f"s" b""',
'b"s" f""',
# f-string expression part cannot include a backslash
r'''f"{'\n'}"''',
]
FAILING_EXAMPLES.append('[a, 1] += 3')