mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-40176: Improve error messages for unclosed string literals (GH-19346)
Automerge-Triggered-By: GH:isidentical
This commit is contained in:
parent
c3f167d7b2
commit
a698d52c39
7 changed files with 34 additions and 32 deletions
|
@ -661,7 +661,7 @@ x = (
|
|||
["f'{3)+(4}'",
|
||||
])
|
||||
|
||||
self.assertAllRaise(SyntaxError, 'EOL while scanning string literal',
|
||||
self.assertAllRaise(SyntaxError, 'unterminated string literal',
|
||||
["f'{\n}'",
|
||||
])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue