From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 8 Jul 2026 16:04:13 +0000 (+0200) Subject: [3.15] gh-150191: temporarily skip two openssl tests which have internal data races... X-Git-Tag: v3.15.0b4~74 X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=c8434e6603e2a2d349002503498e52006085f6bf;p=thirdparty%2FPython%2Fcpython.git [3.15] gh-150191: temporarily skip two openssl tests which have internal data races under TSAN (GH-153320) (#153350) gh-150191: temporarily skip two openssl tests which have internal data races under TSAN (GH-153320) (cherry picked from commit c11af48fddb1fd5b38e2f026c333e8487f3bcc53) Co-authored-by: Kumar Aditya --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 0983a54fe1e7..90fe087ecb85 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1606,6 +1606,9 @@ class ContextTests(unittest.TestCase): 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 @@ class ThreadedTests(unittest.TestCase): with client_context.wrap_socket(socket.socket()) as s: s.connect((HOST, server.port)) + @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): # GH-137583: Locking was added to calls to send() and recv() on SSL # socket objects. This seemed fine at the surface level because those