]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436)
authorVictor Stinner <vstinner@python.org>
Fri, 16 Apr 2021 12:32:01 +0000 (14:32 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Apr 2021 12:32:01 +0000 (14:32 +0200)
commit75ec103b3adbb7c619a0e22fa60f3d34c5a9e603
treef5659351ffe9e214978409fec2b8008b402c2409
parent471870fc504b0d69c767b188f180b17248be6998
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436)

Fix a race condition in the SMTP test of test_logging. Don't close a
file descriptor (socket) from a different thread while
asyncore.loop() is polling the file descriptor.
Lib/test/test_logging.py
Misc/NEWS.d/next/Tests/2021-04-16-14-07-40.bpo-43842.w60GAH.rst [new file with mode: 0644]