summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-01-13 11:37:07 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-01-13 11:37:07 +0900
commit3f998a0096021d1e99e99fc01a9222d075ae6b3f (patch)
tree148d52fa49fdbe887c30a8f772ed4efdb5c4d8c6 /tests/test_build_html.py
parent7898c64cf409cabab97934691aa0024a14a2621f (diff)
downloadsphinx-git-3f998a0096021d1e99e99fc01a9222d075ae6b3f.tar.gz
Fix line numbers was not shown on warnings of indecies
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r--tests/test_build_html.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index ef84bbcb4..34b987852 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -31,6 +31,7 @@ http://www.python.org/logo.png
reading included file u'.*?wrongenc.inc' seems to be wrong, try giving an \
:encoding: option\\n?
%(root)s/includes.txt:4: WARNING: download file not readable: .*?nonexisting.png
+(%(root)s/markup.txt:351: WARNING: invalid single index entry u'')?
(%(root)s/undecodable.txt:3: WARNING: undecodable source characters, replacing \
with "\\?": b?'here: >>>(\\\\|/)xbb<<<'
)?"""
@@ -39,9 +40,6 @@ HTML_WARNINGS = ENV_WARNINGS + """\
%(root)s/images.txt:20: WARNING: no matching candidate for image URI u'foo.\\*'
%(root)s/footnote.txt:60: WARNING: citation not found: missing
%(root)s/markup.txt:158: WARNING: unknown option: &option
-%(root)s/markup.txt:: WARNING: invalid single index entry u''
-%(root)s/markup.txt:: WARNING: invalid pair index entry u''
-%(root)s/markup.txt:: WARNING: invalid pair index entry u'keyword; '
"""
if PY3:
@@ -376,7 +374,7 @@ def check_extra_entries(outdir):
assert (outdir / 'robots.txt').isfile()
-@gen_with_app(buildername='html',
+@gen_with_app(buildername='html', freshenv=True, # use freshenv to check warnings
confoverrides={'html_context.hckey_co': 'hcval_co'},
tags=['testtag'])
def test_html_output(app, status, warning):