Remove unnecessary 'invalid_primary' rule in the parser (GH-27186)

This commit is contained in:
Pablo Galindo Salgado 2021-07-16 13:20:09 +01:00 committed by GitHub
parent 000e70ad52
commit a283ef116b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 239 additions and 309 deletions

View file

@ -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")