]> 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>
Sun, 11 Oct 2020 22:37:20 +0000 (00:37 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Oct 2020 22:37:20 +0000 (00:37 +0200)
commit13ff396c019d548ba181cf22c6f39309a300723c
treebb104dcbbfa9c1b8cc89a822f8a01b4b47e4c5bc
parent47ecfd8030c391779dd9d3b4b07e6b01a8392481
bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655)

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

Also, use regular threads rather than daemon threads.
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]