From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 29 Dec 2022 15:41:34 +0000 (-0800) Subject: gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (GH-100601) X-Git-Tag: v3.11.2~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd520e7bae18549971b900b6dadc69bfc35d4b3f;p=thirdparty%2FPython%2Fcpython.git gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (GH-100601) (cherry picked from commit 76856366d3ece34c3e738f7167329e97bbf52b34) Co-authored-by: Nikita Sobolev --- diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 10f1a9efbcbd..93ddbf6e8976 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -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