Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) #7315

Merged
merged 2 commits into from
Jun 1, 2018
Merged

[3.6] bpo-31234: Add test.support.wait_threads_exit() (GH-3578) #7315

merged 2 commits into from
Jun 1, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 1, 2018

Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.

(cherry picked from commit ff40ecd)
Try to fix the "Warning -- threading_cleanup() failed to cleanup 1
threads" warning in test.lock_tests: wait a little bit longer to give
time to the threads to complete.

Warning seen on test_thread and test_importlib.

(cherry picked from commit 096ae33)
@vstinner vstinner merged commit 5dbb48a into python:3.6 Jun 1, 2018
@vstinner vstinner deleted the wait_threads_exit36 branch June 1, 2018 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants