https://github.com/python/cpython/commit/1056f2bc208bdfe562c79d2a5098723c50ae9c23 commit: 1056f2bc208bdfe562c79d2a5098723c50ae9c23 branch: main author: Gregor <[email protected]> committer: encukou <[email protected]> date: 2024-07-18T14:29:03+02:00 summary:
gh-121657: Additional `yield from` error test using lambda (GH-121722) files: M Lib/test/test_generators.py diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py index 34f79dafbe9851..3cb4d51fff1eeb 100644 --- a/Lib/test/test_generators.py +++ b/Lib/test/test_generators.py @@ -2247,6 +2247,11 @@ def printsolution(self, x): ... 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): ... _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
