aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-15 19:41:04 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-15 19:41:04 -0500
commit1cd6c9a1f6840ff82217a9e7059b8ec7049f3a32 (patch)
tree02a556911928219b5d89225c57c13c122aadff9f /setuptools/tests
parentcde1eb84bd1813ff4425fe6f05cbdeba8e410c13 (diff)
downloadexternal_python_setuptools-1cd6c9a1f6840ff82217a9e7059b8ec7049f3a32.tar.gz
external_python_setuptools-1cd6c9a1f6840ff82217a9e7059b8ec7049f3a32.tar.bz2
external_python_setuptools-1cd6c9a1f6840ff82217a9e7059b8ec7049f3a32.zip
Skip integration tests when SSL is broken. Ref #317.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_integration.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setuptools/tests/test_integration.py b/setuptools/tests/test_integration.py
index 92a27080..90bb4313 100644
--- a/setuptools/tests/test_integration.py
+++ b/setuptools/tests/test_integration.py
@@ -12,6 +12,7 @@ import pytest
from setuptools.command.easy_install import easy_install
from setuptools.command import easy_install as easy_install_pkg
from setuptools.dist import Distribution
+from setuptools.compat import urlopen
def setup_module(module):
@@ -24,6 +25,11 @@ def setup_module(module):
except ImportError:
pass
+ try:
+ urlopen('https://pypi.python.org/pypi')
+ except Exception as exc:
+ pytest.skip(reason=str(exc))
+
@pytest.fixture
def install_context(request, tmpdir, monkeypatch):