We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a42d50 commit a5669b3Copy full SHA for a5669b3
Lib/test/test_nntplib.py
@@ -368,9 +368,10 @@ class NetworkedNNTP_SSLTests(NetworkedNNTPTests):
368
# Disabled as the connection will already be encrypted.
369
test_starttls = None
370
371
- ssl_context = ssl._create_unverified_context()
372
- ssl_context.set_ciphers("DEFAULT")
373
- ssl_context.maximum_version = ssl.TLSVersion.TLSv1_2
+ if ssl is not None:
+ ssl_context = ssl._create_unverified_context()
+ ssl_context.set_ciphers("DEFAULT")
374
+ ssl_context.maximum_version = ssl.TLSVersion.TLSv1_2
375
376
#
377
# Non-networked tests using a local server (or something mocking it).
0 commit comments