summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/packaging/tests/test_command_upload_docs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/packaging/tests/test_command_upload_docs.py b/Lib/packaging/tests/test_command_upload_docs.py
index 756843e..9876d18 100644
--- a/Lib/packaging/tests/test_command_upload_docs.py
+++ b/Lib/packaging/tests/test_command_upload_docs.py
@@ -3,6 +3,10 @@ import os
import sys
import shutil
import zipfile
+try:
+ import _ssl
+except ImportError:
+ _ssl = None
from packaging.command import upload_docs as upload_docs_mod
from packaging.command.upload_docs import (upload_docs, zip_dir,
@@ -145,6 +149,7 @@ class UploadDocsTestCase(support.TempdirManager,
self.assertIn(b'docs/index.html', content)
self.assertIn(b'Ce mortel ennui', content)
+ @unittest.skipIf(_ssl is None, 'Needs SSL support')
def test_https_connection(self):
https_called = False