]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-100600: Fix "coroutine was never awaited" warning in `test_coroutines` (#100601)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 29 Dec 2022 15:13:38 +0000 (18:13 +0300)
committerGitHub <noreply@github.com>
Thu, 29 Dec 2022 15:13:38 +0000 (20:43 +0530)
Lib/test/test_coroutines.py

index 43a3ff0536fe283808e5b5a54dd4cda8c0473a61..6ab19efcc588b8780acd676d2feebbcb1dcc068c 100644 (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