mirror of https://github.com/python/cpython
gh-121657: Additional `yield from` error test using lambda (GH-121722)
This commit is contained in:
parent
3eacfc1a4d
commit
1056f2bc20
|
@ -2247,6 +2247,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):
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue