]> granicus.if.org Git - python/commit
bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Sep 2017 22:25:39 +0000 (00:25 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 22:25:39 +0000 (00:25 +0200)
commite8a533fbc734af6eeb389202ba6c6e9c2548027f
tree20d58f8741ff227b6c130308d9a666ccc60c3fba
parentb713adf27a76b5df95e3ee5f85f9064a2763ae35
bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)

Call doCleanups() to close the loop after calling
executor.shutdown(wait=True): see TestCase.set_event_loop() of
asyncio.test_utils.

Replace also gc.collect() with support.gc_collect().
Lib/test/test_asyncio/test_events.py