mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #23243: Close explicitly event loops in asyncio tests
This commit is contained in:
parent
41ed958ee6
commit
33cb0396e8
3 changed files with 20 additions and 1 deletions
|
@ -590,6 +590,7 @@ class BaseEventLoopTests(test_utils.TestCase):
|
|||
raise ValueError('spam')
|
||||
|
||||
loop = Loop()
|
||||
self.addCleanup(loop.close)
|
||||
asyncio.set_event_loop(loop)
|
||||
|
||||
def run_loop():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue