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 6e63c47 commit 1e7e952Copy full SHA for 1e7e952
Lib/test/test_asyncio/test_taskgroups.py
@@ -32,11 +32,7 @@ def get_error_types(eg):
32
33
def no_other_refs():
34
# due to gh-124392 coroutines now refer to their locals
35
- coro = asyncio.current_task().get_coro()
36
- frame = sys._getframe(1)
37
- while coro.cr_frame != frame:
38
- coro = coro.cr_await
39
- return [coro]
+ return [sys._getframe(1).f_generator]
40
41
42
def set_gc_state(enabled):
0 commit comments