Commit 1cd6c9a1 authored by Jason R. Coombs's avatar Jason R. Coombs

Skip integration tests when SSL is broken. Ref #317.

parent cde1eb84
...@@ -12,6 +12,7 @@ import pytest ...@@ -12,6 +12,7 @@ import pytest
from setuptools.command.easy_install import easy_install from setuptools.command.easy_install import easy_install
from setuptools.command import easy_install as easy_install_pkg from setuptools.command import easy_install as easy_install_pkg
from setuptools.dist import Distribution from setuptools.dist import Distribution
from setuptools.compat import urlopen
def setup_module(module): def setup_module(module):
...@@ -24,6 +25,11 @@ def setup_module(module): ...@@ -24,6 +25,11 @@ def setup_module(module):
except ImportError: except ImportError:
pass pass
try:
urlopen('https://pypi.python.org/pypi')
except Exception as exc:
pytest.skip(reason=str(exc))
@pytest.fixture @pytest.fixture
def install_context(request, tmpdir, monkeypatch): def install_context(request, tmpdir, monkeypatch):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment