File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2203,6 +2203,8 @@ def test_renegotiation(self):
2203
2203
sslctx .use_privatekey_file (self .ONLYKEY )
2204
2204
sslctx .use_certificate_chain_file (self .ONLYCERT )
2205
2205
client_sslctx = self ._create_client_ssl_context ()
2206
+ if hasattr (ssl , 'OP_NO_TLSv1_3' ):
2207
+ client_sslctx .options |= ssl .OP_NO_TLSv1_3
2206
2208
2207
2209
def server (sock ):
2208
2210
conn = openssl_ssl .Connection (sslctx , sock )
@@ -2560,6 +2562,8 @@ def test_flush_before_shutdown(self):
2560
2562
sslctx_openssl .use_privatekey_file (self .ONLYKEY )
2561
2563
sslctx_openssl .use_certificate_chain_file (self .ONLYCERT )
2562
2564
client_sslctx = self ._create_client_ssl_context ()
2565
+ if hasattr (ssl , 'OP_NO_TLSv1_3' ):
2566
+ client_sslctx .options |= ssl .OP_NO_TLSv1_3
2563
2567
2564
2568
future = None
2565
2569
You can’t perform that action at this time.
0 commit comments