bpo-40246: Report a better error message for invalid string prefixes (GH-19476)

This commit is contained in:
Lysandros Nikolaou 2020-04-12 21:21:00 +03:00 committed by GitHub
parent 402e1cdb13
commit 41d5b94af4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 1 deletions

View file

@ -841,7 +841,7 @@ non-important content
self.assertEqual(f'{f"{y}"*3}', '555')
def test_invalid_string_prefixes(self):
self.assertAllRaise(SyntaxError, 'unexpected EOF while parsing',
self.assertAllRaise(SyntaxError, 'invalid string prefix',
["fu''",
"uf''",
"Fu''",