summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/utils.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-23 20:49:04 (GMT)
committerChristian Heimes <christian@python.org>2018-05-23 20:49:04 (GMT)
commit72ef4fc32b354f8e56eec64f4c15ac2e07d118be (patch)
tree79cca6305c0c23bd2e285665a939f59c17703d3f /Lib/test/test_asyncio/utils.py
parent508d7693bc09affd99fdaa4a321cc3da0638c8a0 (diff)
downloadcpython-72ef4fc32b354f8e56eec64f4c15ac2e07d118be.zip
cpython-72ef4fc32b354f8e56eec64f4c15ac2e07d118be.tar.gz
cpython-72ef4fc32b354f8e56eec64f4c15ac2e07d118be.tar.bz2
[3.7] bpo-33618: Enable TLS 1.3 in tests (GH-7079) (GH-7082)
TLS 1.3 behaves slightly different than TLS 1.2. Session tickets and TLS client cert auth are now handled after the initialy handshake. Tests now either send/recv data to trigger session and client certs. Or tests ignore ConnectionResetError / BrokenPipeError on the server side to handle clients that force-close the socket fd. To test TLS 1.3, OpenSSL 1.1.1-pre7-dev (git master + OpenSSL PR https://github.com/openssl/openssl/pull/6340) is required. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 529525fb5a8fd9b96ab4021311a598c77588b918)
Diffstat (limited to 'Lib/test/test_asyncio/utils.py')
-rw-r--r--Lib/test/test_asyncio/utils.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py
index 711085f..96dfe2f 100644
--- a/Lib/test/test_asyncio/utils.py
+++ b/Lib/test/test_asyncio/utils.py
@@ -74,8 +74,6 @@ def simple_server_sslcontext():
server_context.load_cert_chain(ONLYCERT, ONLYKEY)
server_context.check_hostname = False
server_context.verify_mode = ssl.CERT_NONE
- # TODO: fix TLSv1.3 support
- server_context.options |= ssl.OP_NO_TLSv1_3
return server_context