From 1dea6882da12bac3d776d34f1686df65cc1edbce Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Wed, 8 Jul 2026 16:41:14 +0530 Subject: [PATCH 1/2] skip two openssl tests --- Lib/test/test_ssl.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 575a322aa45923d..76176d19f60f6b5 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1604,6 +1604,9 @@ def dummycallback(sock, servername, ctx, cycle=ctx): gc.collect() self.assertIs(wr(), None) + @support.skip_if_sanitizer("gh-150191: OpenSSL has an internal data race " + "when the SNI callback is replaced during a " + "handshake", thread=True) @threading_helper.requires_working_threading() def test_sni_callback_race(self): # Replacing sni_callback while a handshake is in-flight must not @@ -5045,6 +5048,9 @@ def server_callback(identity): with client_context.wrap_socket(socket.socket()) as s: s.connect((HOST, server.port)) + @support.skip_if_sanitizer("gh-137583: OpenSSL races on SSL->rwstate and " + "the socket BIO flags with concurrent read " + "and write", thread=True) def test_thread_recv_while_main_thread_sends(self): # GH-137583: Locking was added to calls to send() and recv() on SSL # socket objects. This seemed fine at the surface level because those From a5abeec97121f3ea84dd440493c374ea938d725f Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Wed, 8 Jul 2026 16:44:41 +0530 Subject: [PATCH 2/2] Update Lib/test/test_ssl.py --- Lib/test/test_ssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 76176d19f60f6b5..352a9c2a0c6106f 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -5048,7 +5048,7 @@ def server_callback(identity): with client_context.wrap_socket(socket.socket()) as s: s.connect((HOST, server.port)) - @support.skip_if_sanitizer("gh-137583: OpenSSL races on SSL->rwstate and " + @support.skip_if_sanitizer("gh-150191: OpenSSL races on SSL->rwstate and " "the socket BIO flags with concurrent read " "and write", thread=True) def test_thread_recv_while_main_thread_sends(self):