]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (GH-100601)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 29 Dec 2022 15:41:34 +0000 (07:41 -0800)
committerGitHub <noreply@github.com>
Thu, 29 Dec 2022 15:41:34 +0000 (07:41 -0800)
(cherry picked from commit 76856366d3ece34c3e738f7167329e97bbf52b34)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_coroutines.py

index 10f1a9efbcbdd6a4f4f0718188f05b4dcffacae6..93ddbf6e8976cb4a9ddce9b6ccca54b2ece8d2f6 100644 (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