[3.12] gh-121657: Additional yield from error test using lambda (GH-121722) (GH-121962)

(cherry picked from commit 1056f2bc20)

Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2024-07-19 13:50:51 +02:00 committed by GitHub
parent 88618d2910
commit 2e8dba3e1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):
...