Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32c4915

Browse files
committed
Try to fix test_ssl failures on some buildbots
1 parent 2f7c316 commit 32c4915

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_ssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,9 +1440,9 @@ def try_protocol_combo(server_protocol, client_protocol, expect_success,
14401440
ssl.get_protocol_name(server_protocol),
14411441
certtype))
14421442
client_context = ssl.SSLContext(client_protocol)
1443-
client_context.options = ssl.OP_ALL | client_options
1443+
client_context.options |= client_options
14441444
server_context = ssl.SSLContext(server_protocol)
1445-
server_context.options = ssl.OP_ALL | server_options
1445+
server_context.options |= server_options
14461446
for ctx in (client_context, server_context):
14471447
ctx.verify_mode = certsreqs
14481448
# NOTE: we must enable "ALL" ciphers, otherwise an SSLv23 client

0 commit comments

Comments
 (0)