Skip to content

bpo-30131: test_logging now joins queue threads#1298

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:logging_queue
Apr 26, 2017
Merged

bpo-30131: test_logging now joins queue threads#1298
vstinner merged 1 commit into
python:masterfrom
vstinner:logging_queue

Conversation

@vstinner
Copy link
Copy Markdown
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
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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