]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) ...
authorMiss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Oct 2020 08:51:10 +0000 (01:51 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 08:51:10 +0000 (10:51 +0200)
commit33057c70920787627f2c94d08eb5d33c31f8bdd9
tree7d430fb2d931dd2d7f627ad9574dc31b8eddb2a9
parent1006f63a8b4327e8a74eb978b175b5234bb46c6c
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656) (GH-22662)

The test now waits until all threads complete to avoid leaking
running threads.

Also, use regular threads rather than daemon threads.

(cherry picked from commit 13ff396c019d548ba181cf22c6f39309a300723c)
(cherry picked from commit f5393dc2a0ced7bf670ebc56b5fd10a3eb328d1a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_logging.py
Misc/NEWS.d/next/Tests/2020-10-12-00-11-47.bpo-41739.wSCc4K.rst [new file with mode: 0644]