Split out test_build_latex.

This commit is contained in:
Georg Brandl
2010-01-17 12:29:00 +01:00
parent c98236bc61
commit 03d5917a53
3 changed files with 103 additions and 87 deletions

View File

@@ -22,7 +22,6 @@ except ImportError:
from sphinx import __version__
from util import *
from test_build import ENV_WARNINGS
from etree13 import ElementTree as ET
@@ -32,6 +31,15 @@ def teardown_module():
html_warnfile = StringIO()
ENV_WARNINGS = """\
%(root)s/images.txt:9: WARNING: image file not readable: foo.png
%(root)s/images.txt:23: WARNING: nonlocal image URI found: \
http://www.python.org/logo.png
%(root)s/includes.txt:: (WARNING/2) Encoding 'utf-8-sig' used for reading \
included file u'wrongenc.inc' seems to be wrong, try giving an :encoding: option
%(root)s/includes.txt:4: WARNING: download file not readable: nonexisting.png
"""
HTML_WARNINGS = ENV_WARNINGS + """\
%(root)s/images.txt:20: WARNING: no matching candidate for image URI u'foo.*'
%(root)s/markup.txt:: WARNING: invalid index entry u''