Skip to content

Commit

Permalink
Re-enable commented-out test in test_generators.py (#104130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymki4360 authored May 7, 2023
1 parent 69621d1 commit 4729383
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Lib/test/test_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2141,11 +2141,10 @@ def printsolution(self, x):
...
SyntaxError: 'yield' outside function
# Pegen does not produce this error message yet
# >>> def f(): x = yield = y
# Traceback (most recent call last):
# ...
# SyntaxError: assignment to yield expression not possible
>>> def f(): x = yield = y
Traceback (most recent call last):
...
SyntaxError: assignment to yield expression not possible
>>> def f(): (yield bar) = y
Traceback (most recent call last):
Expand Down

0 comments on commit 4729383

Please sign in to comment.