[Python-checkins] cpython: skip the pypi upload doc test via https, if ssl is not available
tarek.ziade
python-checkins at python.org
Sat May 21 19:54:32 CEST 2011
http://hg.python.org/cpython/rev/bf518872af5a
changeset: 70260:bf518872af5a
user: Tarek Ziade <tarek at ziade.org>
date: Sat May 21 19:53:45 2011 +0200
summary:
skip the pypi upload doc test via https, if ssl is not available
files:
Lib/packaging/tests/test_command_upload_docs.py | 5 +++++
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
--- a/Lib/packaging/tests/test_command_upload_docs.py
+++ b/Lib/packaging/tests/test_command_upload_docs.py
@@ -3,6 +3,10 @@
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 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list