We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8078d01 commit 75a604dCopy full SHA for 75a604d
1 file changed
Lib/test/test_coroutines.py
@@ -2270,9 +2270,7 @@ def test_call_generator_in_frame_clear(self):
2270
# should not be misinterpreted as a yield.
2271
class CallGeneratorOnDealloc:
2272
def __del__(self):
2273
- def gen():
2274
- yield 1
2275
- next(gen())
+ next(x for x in [1])
2276
2277
async def coro():
2278
obj = CallGeneratorOnDealloc()
0 commit comments