diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-14 13:58:23 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-14 13:58:23 (GMT) |
commit | 527c62292675ce6f0528593915900f2d025b0259 (patch) | |
tree | 010c85e5dc0b555d1342040b04fadededc3b3984 /Lib/test/test_ast.py | |
parent | 91f252b179c4d399f735fedf72e53148e0b057fc (diff) | |
download | cpython-527c62292675ce6f0528593915900f2d025b0259.zip cpython-527c62292675ce6f0528593915900f2d025b0259.tar.gz cpython-527c62292675ce6f0528593915900f2d025b0259.tar.bz2 |
make YieldFrom its own distinct from Yield (closes #13780)
Diffstat (limited to 'Lib/test/test_ast.py')
-rw-r--r-- | Lib/test/test_ast.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index 2022ee2..b809d24 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -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()) |