mirror of
https://github.com/python/cpython.git
synced 2024-12-12 11:23:56 +08:00
bpo-43998: Fix testing without ssl module (GH-25790)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
9a42d5069a
commit
a5669b3c62
@ -368,6 +368,7 @@ class NetworkedNNTP_SSLTests(NetworkedNNTPTests):
|
||||
# Disabled as the connection will already be encrypted.
|
||||
test_starttls = None
|
||||
|
||||
if ssl is not None:
|
||||
ssl_context = ssl._create_unverified_context()
|
||||
ssl_context.set_ciphers("DEFAULT")
|
||||
ssl_context.maximum_version = ssl.TLSVersion.TLSv1_2
|
||||
|
Loading…
Reference in New Issue
Block a user