Skip to content

bpo-43842: Fix race condition in test_logging SMTP test #25436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2021
Merged

bpo-43842: Fix race condition in test_logging SMTP test #25436

merged 1 commit into from
Apr 16, 2021

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.

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

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

@vstinner vstinner deleted the fix_test_logging branch April 16, 2021 12:32
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry @vstinner, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603 3.8

vstinner added a commit that referenced this pull request Apr 16, 2021
…H-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 75ec103)
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