commit | 7b35bef9787cd80ed1e12124f759b4be03c849db | [log] [tgz] |
---|---|---|
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | Thu Jan 02 21:20:04 2020 +0300 |
committer | Pablo Galindo <Pablogsal@gmail.com> | Thu Jan 02 18:20:04 2020 +0000 |
tree | 6b9acbbb48a86fc49da74afc2c9a97f31373f6bc | |
parent | 78018bb1621e5ecb61cba6e664d14ff789d2874c [diff] [blame] |
bpo-38870: Throw ValueError on invalid yield from usage (GH-17798)
diff --git a/Lib/test/test_unparse.py b/Lib/test/test_unparse.py index 49767db..e8b0d4b 100644 --- a/Lib/test/test_unparse.py +++ b/Lib/test/test_unparse.py
@@ -278,6 +278,8 @@ def test_invalid_set(self): self.check_invalid(ast.Set(elts=[])) + def test_invalid_yield_from(self): + self.check_invalid(ast.YieldFrom(value=None)) class DirectoryTestCase(ASTTestCase): """Test roundtrip behaviour on all files in Lib and Lib/test."""