Skip to content

Commit 76ddcae

Browse files
gh-143756: skip test_load_cert_chain_thread_safety under TSAN
This test spawns 8 threads calling load_cert_chain on the same context, directly triggering the data race on the SSL_CTX default password callback (fixed in 3.15 by GH-143818). It was the test that failed both TSan CI jobs.
1 parent c173e0d commit 76ddcae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,10 @@ def getpass(self):
13111311
# Make sure the password function isn't called if it isn't needed
13121312
ctx.load_cert_chain(CERTFILE, password=getpass_exception)
13131313

1314+
@support.skip_if_sanitizer("gh-143756: data race in "
1315+
"SSLContext.load_cert_chain when called "
1316+
"concurrently on the same context",
1317+
thread=True)
13141318
@threading_helper.requires_working_threading()
13151319
def test_load_cert_chain_thread_safety(self):
13161320
# gh-134698: _ssl detaches the thread state (and as such,

0 commit comments

Comments
 (0)