diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 6bd78887bff..ea6eada07c5 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2145,6 +2145,11 @@ Traceback (most recent call last): ... SyntaxError: 'yield' outside function +>>> f=lambda: (yield from (1,2)), (yield from (3,4)) +Traceback (most recent call last): + ... +SyntaxError: 'yield from' outside function + >>> yield from [1,2] Traceback (most recent call last): ...