Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Simplify CallGeneratorOnDealloc
  • Loading branch information
colesbury committed Jan 20, 2026
commit 75a604de0dac4cc7521dc2f6a1e192cdb54c261c
4 changes: 1 addition & 3 deletions Lib/test/test_coroutines.py
Original file line number Diff line number Diff line change
Expand Up @@ -2270,9 +2270,7 @@ def test_call_generator_in_frame_clear(self):
# should not be misinterpreted as a yield.
class CallGeneratorOnDealloc:
def __del__(self):
def gen():
yield 1
next(gen())
next(x for x in [1])

async def coro():
obj = CallGeneratorOnDealloc()
Expand Down
Loading