]> granicus.if.org Git - python/commit
bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 30 Jun 2017 15:20:31 +0000 (17:20 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2017 15:20:31 +0000 (17:20 +0200)
commit0e0bc8762570277147a09278c829e4a85a331596
tree19c4a680191eab13742796715e7fa6539d8ede92
parent714afccf6e7644d21ce1a39e90bf83cb0c9a74f1
bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)

* bpo-30280: asyncio now cleans up threads

asyncio base TestCase now uses threading_setup() and
threading_cleanup() of test.support to cleanup threads.

* asyncio: Fix TestBaseSelectorEventLoop cleanup

bpo-30280: TestBaseSelectorEventLoop of
test.test_asyncio.test_selector_events now correctly closes the event
loop: cleanup its executor to not leak threads.

Don't override the close() method of the event loop, only override
the_close_self_pipe() method.

(cherry picked from commit b9030674624c181d6e9047cdb14ad65bb6c84c66)
Lib/asyncio/test_utils.py
Lib/test/test_asyncio/test_selector_events.py