diff options
Diffstat (limited to 'debian/patches/skip_tests_network.diff')
-rw-r--r-- | debian/patches/skip_tests_network.diff | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/debian/patches/skip_tests_network.diff b/debian/patches/skip_tests_network.diff new file mode 100644 index 0000000..f873091 --- /dev/null +++ b/debian/patches/skip_tests_network.diff @@ -0,0 +1,63 @@ +From: Dmitry Shachnev <mitya57@debian.org> +Date: Tue, 20 Dec 2016 16:37:32 +0300 +Subject: Skip tests that require network access + +Forwarded: not-needed +--- + tests/test_build_latex.py | 1 + + tests/test_build_linkcheck.py | 3 +++ + tests/test_setup_command.py | 1 + + 3 files changed, 5 insertions(+) + +diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py +index 004fc02..374e5ee 100644 +--- a/tests/test_build_latex.py ++++ b/tests/test_build_latex.py +@@ -1384,6 +1384,7 @@ def test_latex_raw_directive(app, status, warning): + assert 'LaTeX: abc def ghi' in result + + ++@pytest.mark.skip('Requires internet access') + @pytest.mark.sphinx('latex', testroot='images') + def test_latex_images(app, status, warning): + app.builder.build_all() +diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py +index 631c7fa..5df6b87 100644 +--- a/tests/test_build_linkcheck.py ++++ b/tests/test_build_linkcheck.py +@@ -23,6 +23,7 @@ from .utils import CERT_FILE, http_server, https_server + ts_re = re.compile(r".*\[(?P<ts>.*)\].*") + + ++@pytest.mark.skip('Requires internet access') + @pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True) + def test_defaults(app): + app.build() +@@ -44,6 +45,7 @@ def test_defaults(app): + assert len(content.splitlines()) == 7 + + ++@pytest.mark.skip('Requires internet access') + @pytest.mark.sphinx('linkcheck', testroot='linkcheck', freshenv=True) + def test_defaults_json(app): + app.build() +@@ -105,6 +107,7 @@ def test_defaults_json(app): + } + + ++@pytest.mark.skip('Requires internet access') + @pytest.mark.sphinx( + 'linkcheck', testroot='linkcheck', freshenv=True, + confoverrides={'linkcheck_anchors_ignore': ["^!", "^top$"], +diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py +index ef36467..6b36ac9 100644 +--- a/tests/test_setup_command.py ++++ b/tests/test_setup_command.py +@@ -99,6 +99,7 @@ def test_build_sphinx_with_nonascii_path(setup_command): + assert proc.returncode == 0 + + ++@pytest.mark.skip('Requires internet access') + @pytest.mark.setup_command('-b', 'linkcheck') + def test_build_sphinx_return_nonzero_status(setup_command): + srcdir = (setup_command.pkgroot / 'doc') |