summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-05-04 11:32:18 (GMT)
committerGitHub <noreply@github.com>2020-05-04 11:32:18 (GMT)
commit846d8b28ab9bb6197ee81372820311c0abe509c0 (patch)
treebbcdb73b768194661bef017b18aed9e870d98c24 /Lib
parente10e7c771bf06112c4a311e0ef6b8af6423b0cca (diff)
downloadcpython-846d8b28ab9bb6197ee81372820311c0abe509c0.zip
cpython-846d8b28ab9bb6197ee81372820311c0abe509c0.tar.gz
cpython-846d8b28ab9bb6197ee81372820311c0abe509c0.tar.bz2
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 41d5b94af44e34ac05d4cd57460ed104ccf96628 has to be reverted.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_fstring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py
index fe465b7..ac5aa9a 100644
--- a/Lib/test/test_fstring.py
+++ b/Lib/test/test_fstring.py
@@ -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):