summaryrefslogtreecommitdiff
path: root/tests/test_build_html5.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-27 23:38:42 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-27 23:38:42 +0900
commit8fda21099d33696b84318c51e22a807cda9f32da (patch)
tree88b1f68a8caa38652584a785314cd8172af8308a /tests/test_build_html5.py
parent8d5d70ba62c4138c52bba3c640a00b964ffa82c1 (diff)
downloadsphinx-git-8fda21099d33696b84318c51e22a807cda9f32da.tar.gz
Remove deprecated testing utilities
Diffstat (limited to 'tests/test_build_html5.py')
-rw-r--r--tests/test_build_html5.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/test_build_html5.py b/tests/test_build_html5.py
index b491b6306..e43decaf9 100644
--- a/tests/test_build_html5.py
+++ b/tests/test_build_html5.py
@@ -14,19 +14,13 @@
:license: BSD, see LICENSE for details.
"""
-import os
-import re
-from itertools import cycle, chain
import xml.etree.cElementTree as ElementTree
-from six import PY3
import pytest
from html5lib import getTreeBuilder, HTMLParser
-from sphinx import __display_version__
from sphinx.util.docutils import is_html5_writer_available
-from util import remove_unicode_literals, strip_escseq, skip_unless
from test_build_html import flat_dict, tail_check, check_xpath
TREE_BUILDER = getTreeBuilder('etree', implementation=ElementTree)
@@ -35,7 +29,8 @@ HTML_PARSER = HTMLParser(TREE_BUILDER, namespaceHTMLElements=False)
etree_cache = {}
-@skip_unless(is_html5_writer_available())
+
+@pytest.mark.skipif(not is_html5_writer_available(), reason='HTML5 writer is not available')
@pytest.fixture(scope='module')
def cached_etree_parse():
def parse(fname):
@@ -50,7 +45,7 @@ def cached_etree_parse():
etree_cache.clear()
-@skip_unless(is_html5_writer_available())
+@pytest.mark.skipif(not is_html5_writer_available(), reason='HTML5 writer is not available')
@pytest.mark.parametrize("fname,expect", flat_dict({
'images.html': [
(".//img[@src='_images/img.png']", ''),