mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
make YieldFrom its own distinct from Yield (closes #13780)
This commit is contained in:
parent
91f252b179
commit
527c622926
7 changed files with 91 additions and 39 deletions
|
|
@ -813,8 +813,8 @@ class ASTValidatorTests(unittest.TestCase):
|
|||
self._check_comprehension(factory)
|
||||
|
||||
def test_yield(self):
|
||||
self.expr(ast.Yield(0, ast.Name("x", ast.Store())), "must have Load")
|
||||
self.expr(ast.Yield(1, ast.Name("x", ast.Store())), "must have Load")
|
||||
self.expr(ast.Yield(ast.Name("x", ast.Store())), "must have Load")
|
||||
self.expr(ast.YieldFrom(ast.Name("x", ast.Store())), "must have Load")
|
||||
|
||||
def test_compare(self):
|
||||
left = ast.Name("x", ast.Load())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue