mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Remove unnecessary 'invalid_primary' rule in the parser (GH-27186)
This commit is contained in:
parent
000e70ad52
commit
a283ef116b
4 changed files with 239 additions and 309 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