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

bpo-30131: test_logging now joins queue threads #1298

Merged
merged 1 commit into from
Apr 26, 2017
Merged

bpo-30131: test_logging now joins queue threads #1298

merged 1 commit into from
Apr 26, 2017

Conversation

vstinner
Copy link
Member

QueueListenerTest of test_logging now closes the multiprocessing
Queue and joins its thread to prevent leaking dangling threads to
following tests.

Add also @support.reap_threads to detect earlier if a test leaks
threads (and try to "cleanup" these threads).

QueueListenerTest of test_logging now closes the multiprocessing
Queue and joins its thread to prevent leaking dangling threads to
following tests.

Add also @support.reap_threads to detect earlier if a test leaks
threads (and try to "cleanup" these threads).
@vstinner vstinner added the tests Tests in the Lib/test dir label Apr 26, 2017
@mention-bot
Copy link

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @vsajip, @tiran and @benjaminp to be potential reviewers.

@vstinner
Copy link
Member Author

On AppVeyor, before this change test_logging failed (env changed) with "Warning -- threading._dangling was modified by test_logging", after this change the test now passes ("test_logging passed")!

@vstinner vstinner merged commit 8ca2f2f into python:master Apr 26, 2017
@vstinner vstinner deleted the logging_queue branch April 26, 2017 13:56
@vstinner
Copy link
Member Author

vstinner added a commit that referenced this pull request Apr 28, 2017
QueueListenerTest of test_logging now closes the multiprocessing
Queue and joins its thread to prevent leaking dangling threads to
following tests.

Add also @support.reap_threads to detect earlier if a test leaks
threads (and try to "cleanup" these threads).
(cherry picked from commit 8ca2f2f)
vstinner added a commit that referenced this pull request Apr 28, 2017
QueueListenerTest of test_logging now closes the multiprocessing
Queue and joins its thread to prevent leaking dangling threads to
following tests.

Add also @support.reap_threads to detect earlier if a test leaks
threads (and try to "cleanup" these threads).
(cherry picked from commit 8ca2f2f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants