summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-16 14:37:09 (GMT)
committerGitHub <noreply@github.com>2021-04-16 14:37:09 (GMT)
commit816da333c8ee848dab7c830c561b8df0b8d23915 (patch)
tree975d1145f63da03383712398665db68be5c119e1 /Misc
parent582917f8b255801f3c722d89ff2b8d6b17a11590 (diff)
downloadcpython-816da333c8ee848dab7c830c561b8df0b8d23915.zip
cpython-816da333c8ee848dab7c830c561b8df0b8d23915.tar.gz
cpython-816da333c8ee848dab7c830c561b8df0b8d23915.tar.bz2
bpo-43842: Fix race condition in test_logging SMTP test (GH-25436) (GH-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 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603) (cherry picked from commit e1903e11a3d42512effe336026e0c67f602e5848)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2021-04-16-14-07-40.bpo-43842.w60GAH.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2021-04-16-14-07-40.bpo-43842.w60GAH.rst b/Misc/NEWS.d/next/Tests/2021-04-16-14-07-40.bpo-43842.w60GAH.rst
new file mode 100644
index 0000000..5b4a120
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2021-04-16-14-07-40.bpo-43842.w60GAH.rst
@@ -0,0 +1,4 @@
+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.
+Patch by Victor Stinner.