gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (#100601)

This commit is contained in:
Nikita Sobolev 2022-12-29 18:13:38 +03:00 committed by GitHub
parent f10f503b24
commit 76856366d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2214,6 +2214,7 @@ class CoroutineTest(unittest.TestCase):
gen = f()
with self.assertWarns(RuntimeWarning):
gen.cr_frame.clear()
gen.close()
def test_stack_in_coroutine_throw(self):
# Regression test for https://github.com/python/cpython/issues/93592