Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Apr 16, 2021

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)

https://bugs.python.org/issue43842

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 requested a review from vsajip as a code owner April 16, 2021 12:36
@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting core review labels Apr 16, 2021
@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 vstinner merged commit e1903e1 into python:3.9 Apr 16, 2021
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@vstinner vstinner deleted the fix_test_loggin39 branch April 16, 2021 14:06
@miss-islington
Copy link
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker e1903e11a3d42512effe336026e0c67f602e5848 3.8

@bedevere-bot
Copy link

GH-25440 is a backport of this pull request to the 3.8 branch.

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants