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

Skip to content

Commit dd520e7

Browse files
gh-100600: Fix "coroutine was never awaited" warning in test_coroutines (GH-100601)
(cherry picked from commit 7685636) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent e180dff commit dd520e7

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
@@ -2207,6 +2207,7 @@ async def f():
22072207
gen = f()
22082208
with self.assertWarns(RuntimeWarning):
22092209
gen.cr_frame.clear()
2210+
gen.close()
22102211

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

0 commit comments

Comments
 (0)