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

* 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