diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-15 12:17:34 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-15 12:17:34 (GMT) |
commit | 33cb0396e86841aa3af033071aa8a00abbdba4d4 (patch) | |
tree | 797cd23b68055b5df248d6c335e7d86c21cf4cf5 /Lib/test/test_asyncio/test_base_events.py | |
parent | 41ed958ee6f0ff15836e11013d1cada8c3ae90fc (diff) | |
download | cpython-33cb0396e86841aa3af033071aa8a00abbdba4d4.zip cpython-33cb0396e86841aa3af033071aa8a00abbdba4d4.tar.gz cpython-33cb0396e86841aa3af033071aa8a00abbdba4d4.tar.bz2 |
Issue #23243: Close explicitly event loops in asyncio tests
Diffstat (limited to 'Lib/test/test_asyncio/test_base_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_base_events.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py index bd6c0d8..9e7c50c 100644 --- a/Lib/test/test_asyncio/test_base_events.py +++ b/Lib/test/test_asyncio/test_base_events.py @@ -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(): |