]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) (GH...
authorVictor Stinner <vstinner@python.org>
Fri, 16 Apr 2021 14:37:09 +0000 (16:37 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Apr 2021 14:37:09 +0000 (16:37 +0200)
commit816da333c8ee848dab7c830c561b8df0b8d23915
tree975d1145f63da03383712398665db68be5c119e1
parent582917f8b255801f3c722d89ff2b8d6b17a11590
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-25437) (GH-25440)

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.

(cherry picked from commit 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603)
(cherry picked from commit e1903e11a3d42512effe336026e0c67f602e5848)
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]