Skip to content

Commit 0040903

Browse files
bpo-35031, test_asycio: disable TLS 1.3 in test_start_tls_server_1() (GH-14148)
bpo-35031, bpo-35998: Reintroduce workaround on Windows and FreeBSD in test_start_tls_server_1() of test_asyncio: disable TLS v1.3 on the client context. (cherry picked from commit c034b78) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 7158949 commit 0040903

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Lib/test/test_asyncio/test_sslproto.py

Lines changed: 6 additions & 0 deletions
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):

0 commit comments

Comments
 (0)