]> granicus.if.org Git - python/commit
bpo-30280: Cleanup threads in ayncio tests (#2501)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 30 Jun 2017 09:12:33 +0000 (11:12 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2017 09:12:33 +0000 (11:12 +0200)
commitb9030674624c181d6e9047cdb14ad65bb6c84c66
tree3f375fb837665a109a98450863f2b51a5fd71d39
parent21a0a6c9f8a047b6eb173ee59e38ad5dc3c46f86
bpo-30280: Cleanup threads in ayncio tests (#2501)

* 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.
Lib/asyncio/test_utils.py
Lib/test/test_asyncio/test_selector_events.py