8000 Opt out of TLS 1.3 only on FreeBSD · python/cpython@f777fa5 · GitHub
[go: up one dir, main page]

Skip to content

Commit f777fa5

Browse files
committed
Opt out of TLS 1.3 only on FreeBSD
1 parent 93e66f6 commit f777fa5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Lib/test/test_asyncio/test_sslproto.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import logging
44
import socket
5+
import sys
56
import unittest
67
from unittest import mock
78
try:
@@ -429,11 +430,12 @@ def test_start_tls_server_1(self):
429430

430431
server_context = test_utils.simple_server_sslcontext()
431432
client_context = test_utils.simple_client_sslcontext()
432-
# bpo-35031: Some FreeBSD buildbots fail to run this test
433-
# as the eof was not being received by the server if the payload
434-
# size is not big enough. This behaviour only appears if the
435-
# client is using TLS1.3.
436-
client_context.options |= ssl.OP_NO_TLSv1_3
433+
if sys.platform.startswith('freebsd'):
434+
# bpo-35031: Some FreeBSD buildbots fail to run this test
435+
# as the eof was not being received by the server if the payload
436+
# size is not big enough. This behaviour only appears if the
437+
# client is using TLS1.3.
438+
client_context.options |= ssl.OP_NO_TLSv1_3
437439

438440
def client(sock, addr):
439441
sock.settimeout(self.TIMEOUT)

0 commit comments

Comments
 (0)
0