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

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