Skip to content

Commit 7685636

Browse files
authored
pythongh-100600: Fix "coroutine was never awaited" warning in test_coroutines (python#100601)
1 parent f10f503 commit 7685636

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_coroutines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2214,6 +2214,7 @@ async def f():
22142214
gen = f()
22152215
with self.assertWarns(RuntimeWarning):
22162216
gen.cr_frame.clear()
2217+
gen.close()
22172218

22182219
def test_stack_in_coroutine_throw(self):
22192220
# Regression test for https://github.com/python/cpython/issues/93592

0 commit comments

Comments
 (0)