Skip to content

Commit ece939a

Browse files
committed
Use global constant in the test.
1 parent 16cab83 commit ece939a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_ssl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ def test_load_cert_chain_thread_safety(self):
12481248
ctx = ssl.create_default_context()
12491249

12501250
def race():
1251-
ctx.load_cert_chain("./Lib/test/certdata/keycert.pem")
1251+
ctx.load_cert_chain(CERTFILE)
12521252

12531253
threads = [threading.Thread(target=race) for _ in range(8)]
12541254
with threading_helper.catch_threading_exception() as cm:

0 commit comments

Comments
 (0)