Issue #23243: Close explicitly event loops in asyncio tests

This commit is contained in:
Victor Stinner 2015-01-15 13:17:34 +01:00
parent 41ed958ee6
commit 33cb0396e8
3 changed files with 20 additions and 1 deletions

View file

@ -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():