diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 34f79dafbe98510..ad4481de6a7e9df 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2252,6 +2252,11 @@ def printsolution(self, x): ... SyntaxError: 'yield from' outside function +>>> f=lambda: (yield from (1,2)), (yield from (3,4)) +Traceback (most recent call last): + ... +SyntaxError: 'yield from' outside function + >>> def f(): x = yield = y Traceback (most recent call last): ...