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

(cherry picked from commit 76856366d3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
Miss Islington (bot) 2022-12-29 07:41:34 -08:00 committed by GitHub
parent e180dff4c7
commit dd520e7bae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2207,6 +2207,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