mirror of
https://github.com/python/cpython.git
synced 2025-09-15 21:26:04 +00:00
[3.10] bpo-34013: Generalize the invalid legacy statement error message (GH-27389). (GH-27391)
(cherry picked from commit 6948964ecf
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
be2415487a
commit
b977f8510e
7 changed files with 339 additions and 246 deletions
|
@ -1305,7 +1305,7 @@ class SyntaxTestCase(unittest.TestCase):
|
|||
)
|
||||
|
||||
def test_curly_brace_after_primary_raises_immediately(self):
|
||||
self._check_error("f{", "invalid syntax", mode="single")
|
||||
self._check_error("f{}", "invalid syntax", mode="single")
|
||||
|
||||
def test_assign_call(self):
|
||||
self._check_error("f() = 1", "assign")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue