Message 396464 - Python tracker

Message396464

Author erlendaasland
Recipients christian.heimes, erlendaasland, pablogsal, terry.reedy
Date 2021-06-24.09:39:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1624527580.94.0.142672192715.issue44229@roundup.psfhosted.org>
In-reply-to
Content
Using this patch, I'm (so far) no longer able to reproduce these test failures:

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index cee97a8302..c9c1546467 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -2443,9 +2443,13 @@ def wrap_conn(self):
                 self.server.conn_errors.append(str(e))
                 if self.server.chatty:
                     handle_error("\n server:  bad connection attempt from " + repr(self.addr) + ":\n")
-                self.running = False
-                self.server.stop()
-                self.close()
+
+                # bpo-44229, bpo-43855, bpo-44237, and bpo-33450:
+                # Ignore spurious EPROTOTYPE returned by write() on macOS.
+                if e.errno != errno.EPROTOTYPE and sys.platform != "darwin":
+                    self.running = False
+                    self.server.stop()
+                    self.close()
                 return False
             else:
                 self.server.shared_ciphers.append(self.sslconn.shared_ciphers())



Running for 40 minutes now, right now passing 6k iterations for test_get_server_certificate, test_msg_callback_deadlock_bpo43577, and test_get_server_certificate_sni.
History
Date User Action Args
2021-06-24 09:39:40erlendaaslandsetrecipients: + erlendaasland, terry.reedy, christian.heimes, pablogsal
2021-06-24 09:39:40erlendaaslandsetmessageid: <1624527580.94.0.142672192715.issue44229@roundup.psfhosted.org>
2021-06-24 09:39:40erlendaaslandlinkissue44229 messages
2021-06-24 09:39:40erlendaaslandcreate