diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-09 15:21:53 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-02-09 15:48:33 +0900 |
commit | 1a96f2b2cb54b16c01898d59574eb098789dc425 (patch) | |
tree | 486b50a99658fc465cb51fba89d682f5db0f4049 | |
parent | 91b6b46a7e14deecb239c22fe0d53d823d856804 (diff) | |
download | sphinx-git-1a96f2b2cb54b16c01898d59574eb098789dc425.tar.gz |
Do test with docutils-0.12
-rw-r--r-- | .travis.yml | 9 | ||||
-rw-r--r-- | tests/test_build_epub.py | 4 | ||||
-rw-r--r-- | tests/test_build_html5.py | 5 |
3 files changed, 14 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index b7110f065..5a49bf106 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,13 +13,14 @@ matrix: include: - python: '3.5' env: - - TOXENV=du13 + - TOXENV=du12 - python: '3.6' env: - - TOXENV=py36 - - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg" + - TOXENV=du13 - python: '3.7' - env: TOXENV=py37 + env: + - TOXENV=py37 + - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg" - python: 'nightly' env: TOXENV=py38 - python: '3.6' diff --git a/tests/test_build_epub.py b/tests/test_build_epub.py index 337363832..acf325a9d 100644 --- a/tests/test_build_epub.py +++ b/tests/test_build_epub.py @@ -15,6 +15,8 @@ from xml.etree import ElementTree import pytest +from sphinx.util import docutils + # check given command is runnable def runnable(command): @@ -351,6 +353,8 @@ def test_epub_css_files(app): 'href="https://example.com/custom.css" />' not in content) +@pytest.mark.skipif(docutils.__version_info__ < (0, 13), + reason='docutils-0.13 or above is required') @pytest.mark.sphinx('epub', testroot='roles-download') def test_html_download_role(app, status, warning): app.build() diff --git a/tests/test_build_html5.py b/tests/test_build_html5.py index dcf0ffcdd..2c4ae517a 100644 --- a/tests/test_build_html5.py +++ b/tests/test_build_html5.py @@ -20,6 +20,7 @@ import pytest from html5lib import HTMLParser from test_build_html import flat_dict, tail_check, check_xpath +from sphinx.util import docutils from sphinx.util.docutils import is_html5_writer_available @@ -319,6 +320,8 @@ def test_html5_output(app, cached_etree_parse, fname, expect): check_xpath(cached_etree_parse(app.outdir / fname), fname, *expect) +@pytest.mark.skipif(docutils.__version_info__ < (0, 13), + reason='docutils-0.13 or above is required') @pytest.mark.sphinx('html', tags=['testtag'], confoverrides={ 'html_context.hckey_co': 'hcval_co', 'html_experimental_html5_writer': True}) @@ -345,6 +348,8 @@ def test_html_download(app): assert matched.group(1) == filename +@pytest.mark.skipif(docutils.__version_info__ < (0, 13), + reason='docutils-0.13 or above is required') @pytest.mark.sphinx('html', testroot='roles-download', confoverrides={'html_experimental_html5_writer': True}) def test_html_download_role(app, status, warning): |