Skip to content

Commit 4729383

Browse files
authored
Re-enable commented-out test in test_generators.py (#104130)
1 parent 69621d1 commit 4729383

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Lib/test/test_generators.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -2141,11 +2141,10 @@ def printsolution(self, x):
21412141
...
21422142
SyntaxError: 'yield' outside function
21432143
2144-
# Pegen does not produce this error message yet
2145-
# >>> def f(): x = yield = y
2146-
# Traceback (most recent call last):
2147-
# ...
2148-
# SyntaxError: assignment to yield expression not possible
2144+
>>> def f(): x = yield = y
2145+
Traceback (most recent call last):
2146+
...
2147+
SyntaxError: assignment to yield expression not possible
21492148
21502149
>>> def f(): (yield bar) = y
21512150
Traceback (most recent call last):

0 commit comments

Comments
 (0)