]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) ...
authorVictor Stinner <vstinner@python.org>
Mon, 12 Oct 2020 04:30:48 +0000 (06:30 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 04:30:48 +0000 (05:30 +0100)
commitf5393dc2a0ced7bf670ebc56b5fd10a3eb328d1a
treeb6c1666992f77fe597a2c626604c5b70ce01df43
parent4af672921949b8a10340d5e29b456091060cedeb
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656)

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)
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]