]> granicus.if.org Git - python/commit
bpo-30131: test_logging now joins queue threads (#1298) (#1318)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 28 Apr 2017 02:27:11 +0000 (04:27 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2017 02:27:11 +0000 (04:27 +0200)
commitd855e53eabca0e8b2b39d25670c37bbdb4ab2e4c
tree5e739d4ae84d5593d677dfe95fc0cd41fe6251fc
parent0eda2d43a7d5b262c979b944592999015a822395
bpo-30131: test_logging now joins queue threads (#1298) (#1318)

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 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf)
Lib/test/test_logging.py