[python/cpython] 0e0bc8: bpo-30280: Cleanup threads in ayncio tests (#2501)...
Branch: refs/heads/3.5 Home: https://github.com/python/cpython Commit: 0e0bc8762570277147a09278c829e4a85a331596 https://github.com/python/cpython/commit/0e0bc8762570277147a09278c829e4a85a3... Author: Victor Stinner <victor.stinner@gmail.com> Date: 2017-06-30 (Fri, 30 Jun 2017) Changed paths: M Lib/asyncio/test_utils.py M Lib/test/test_asyncio/test_selector_events.py Log Message: ----------- 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)
participants (1)
-
GitHub