mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-40246: Report a better error message for invalid string prefixes (GH-19476)
This commit is contained in:
parent
402e1cdb13
commit
41d5b94af4
5 changed files with 10 additions and 1 deletions
|
@ -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''",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue