summaryrefslogtreecommitdiff
path: root/tests/test_build_html5.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-09 21:57:36 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-05-09 21:57:36 +0900
commit56d3458584550022ab4706815276797c77a834d3 (patch)
treedd4210e93c876551ec1b1ffb5e83412b7899a06a /tests/test_build_html5.py
parent832f537703cb1c0b8425f85e0da8b9a580b2351f (diff)
downloadsphinx-git-56d3458584550022ab4706815276797c77a834d3.tar.gz
Fix flake8 violations
Diffstat (limited to 'tests/test_build_html5.py')
-rw-r--r--tests/test_build_html5.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_build_html5.py b/tests/test_build_html5.py
index b491b6306..d381510a0 100644
--- a/tests/test_build_html5.py
+++ b/tests/test_build_html5.py
@@ -14,19 +14,14 @@
: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 util import skip_unless
from test_build_html import flat_dict, tail_check, check_xpath
TREE_BUILDER = getTreeBuilder('etree', implementation=ElementTree)
@@ -35,6 +30,7 @@ HTML_PARSER = HTMLParser(TREE_BUILDER, namespaceHTMLElements=False)
etree_cache = {}
+
@skip_unless(is_html5_writer_available())
@pytest.fixture(scope='module')
def cached_etree_parse():