mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
bpo-40246: Revert reporting of invalid string prefixes (GH-19888)
Due to backwards compatibility concerns regarding keywords immediately followed by a string without whitespace between them (like in `bg="#d00" if clear else"#fca"`) will fail to parse,
commit 41d5b94af4 has to be reverted.
This commit is contained in:
parent
e10e7c771b
commit
846d8b28ab
6 changed files with 2 additions and 12 deletions
|
|
@ -864,7 +864,7 @@ non-important content
|
|||
"Bf''",
|
||||
"BF''",]
|
||||
double_quote_cases = [case.replace("'", '"') for case in single_quote_cases]
|
||||
self.assertAllRaise(SyntaxError, 'invalid string prefix',
|
||||
self.assertAllRaise(SyntaxError, 'unexpected EOF while parsing',
|
||||
single_quote_cases + double_quote_cases)
|
||||
|
||||
def test_leading_trailing_spaces(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue