Skip to content

bpo-31234: Add test.support.wait_threads_exit() #3578

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

Merged
merged 1 commit into from
Sep 14, 2017
Merged

bpo-31234: Add test.support.wait_threads_exit() #3578

merged 1 commit into from
Sep 14, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 14, 2017

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

https://bugs.python.org/issue31234

Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.
@vstinner vstinner merged commit ff40ecd into python:master Sep 14, 2017
@vstinner vstinner deleted the wait_threads_exit branch September 14, 2017 20:07
vstinner added a commit that referenced this pull request Jun 1, 2018
)

* bpo-31234: Add test.support.wait_threads_exit() (GH-3578)

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

(cherry picked from commit ff40ecd)

* bpo-31234: Try to fix lock_tests warning (#3557)

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)
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.

4 participants