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 /tests/test_build_html5.py | |
parent | 91b6b46a7e14deecb239c22fe0d53d823d856804 (diff) | |
download | sphinx-git-1a96f2b2cb54b16c01898d59574eb098789dc425.tar.gz |
Do test with docutils-0.12
Diffstat (limited to 'tests/test_build_html5.py')
-rw-r--r-- | tests/test_build_html5.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): |