Skip to content

Commit c5dafea

Browse files
[3.11] Re-enable commented-out test in test_generators.py (GH-104130) (#104261)
Re-enable commented-out test in test_generators.py (GH-104130) (cherry picked from commit 4729383) Co-authored-by: ymki4360 <[email protected]>
1 parent 15ffcf7 commit c5dafea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Lib/test/test_generators.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,11 +2097,10 @@ def printsolution(self, x):
20972097
...
20982098
SyntaxError: 'yield' outside function
20992099
2100-
# Pegen does not produce this error message yet
2101-
# >>> def f(): x = yield = y
2102-
# Traceback (most recent call last):
2103-
# ...
2104-
# SyntaxError: assignment to yield expression not possible
2100+
>>> def f(): x = yield = y
2101+
Traceback (most recent call last):
2102+
...
2103+
SyntaxError: assignment to yield expression not possible
21052104
21062105
>>> def f(): (yield bar) = y
21072106
Traceback (most recent call last):

0 commit comments

Comments
 (0)