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

Original file line number Diff line number Diff line change
@@ -498,6 +498,12 @@ def test_start_tls_server_1(self):
498 498
499 499 server_context = test_utils.simple_server_sslcontext()
500 500 client_context = test_utils.simple_client_sslcontext()
501 +if sys.platform.startswith('freebsd') or sys.platform.startswith('win'):
502 +# bpo-35031: Some FreeBSD and Windows buildbots fail to run this test
503 +# as the eof was not being received by the server if the payload
504 +# size is not big enough. This behaviour only appears if the
505 +# client is using TLS1.3.
506 +client_context.options |= ssl.OP_NO_TLSv1_3
501 507 answer = None
502 508
503 509 def client(sock, addr):