diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py index 10f1a9efbcbdd6..93ddbf6e8976cb 100644 --- a/Lib/test/test_coroutines.py +++ b/Lib/test/test_coroutines.py @@ -2207,6 +2207,7 @@ async def f(): 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