Skip to content

Commit

Permalink
pythongh-121657: Added an additional test using lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
gege-hoho committed Jul 13, 2024
1 parent 5ea0d5f commit 2abce33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
...
Expand Down

0 comments on commit 2abce33

Please sign in to comment.