◐ Shell
clean mode source ↗

[3.9] bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) by vstinner · Pull Request #25437 · python/cpython

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 75ec103)

@vstinner vstinner changed the title bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) [3.9] bpo-43842: Fix race condition in test_logging SMTP test (GH-25436)

Apr 16, 2021

vstinner added a commit that referenced this pull request

Apr 16, 2021
…H-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 75ec103)
(cherry picked from commit e1903e1)