Skip to content

bpo-30280: Cleanup threads in ayncio tests#2501

Merged
vstinner merged 2 commits intopython:masterfrom
vstinner:asyncio_cleanup
Jun 30, 2017
Merged

bpo-30280: Cleanup threads in ayncio tests#2501
vstinner merged 2 commits intopython:masterfrom
vstinner:asyncio_cleanup

Conversation

@vstinner
Copy link
Copy Markdown
Member

No description provided.

vstinner added 2 commits June 30, 2017 10:43
asyncio base TestCase now uses threading_setup() and
threading_cleanup() of test.support to cleanup threads.
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.
@vstinner vstinner requested a review from 1st1 June 30, 2017 08:58
@mention-bot
Copy link
Copy Markdown

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @1st1, @pitrou and @asvetlov to be potential reviewers.

@vstinner vstinner merged commit b903067 into python:master Jun 30, 2017
@vstinner vstinner deleted the asyncio_cleanup branch June 30, 2017 09:12
vstinner added a commit that referenced this pull request Jun 30, 2017
* 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 b903067)
vstinner added a commit that referenced this pull request Jun 30, 2017
* 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 b903067)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants