summaryrefslogtreecommitdiff
path: root/Lib/test/test_unparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_unparse.py')
-rw-r--r--Lib/test/test_unparse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_unparse.py b/Lib/test/test_unparse.py
index 49767dbac1..e8b0d4b06f 100644
--- a/Lib/test/test_unparse.py
+++ b/Lib/test/test_unparse.py
@@ -278,6 +278,8 @@ class UnparseTestCase(ASTTestCase):
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."""