]> granicus.if.org Git - python/commit
bpo-30131: test_logging now joins queue threads (#1298) (#1317)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 28 Apr 2017 02:13:53 +0000 (04:13 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2017 02:13:53 +0000 (04:13 +0200)
commitcb21f5f3d2005b891df0b76e3fc4d4676e285f21
tree2ce6465e8cd607900928dde01877738235895ee7
parentcaa59c156d1e6ff3d005e0112bb27c5bed4afb71
bpo-30131: test_logging now joins queue threads (#1298) (#1317)

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