bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (G… · python/cpython@e1903e1 · GitHub
Skip to content

Commit e1903e1

Browse files
authored
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 75ec103)
1 parent 56c76df commit e1903e1

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lib/test/test_logging.py

Lines changed: 5 additions & 2 deletions
Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)