bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() … · python/cpython@0040903

Original file line numberDiff line numberDiff line change

@@ -495,6 +495,12 @@ def test_start_tls_server_1(self):

495495
496496

server_context = test_utils.simple_server_sslcontext()

497497

client_context = test_utils.simple_client_sslcontext()

498+

if sys.platform.startswith('freebsd') or sys.platform.startswith('win'):

499+

# bpo-35031: Some FreeBSD and Windows buildbots fail to run this test

500+

# as the eof was not being received by the server if the payload

501+

# size is not big enough. This behaviour only appears if the

502+

# client is using TLS1.3.

503+

client_context.options |= ssl.OP_NO_TLSv1_3

498504

answer = None

499505
500506

def client(sock, addr):