summaryrefslogtreecommitdiff
path: root/tests/test_build_texinfo.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-04 22:13:35 +0100
committerGeorg Brandl <georg@python.org>2011-01-04 22:13:35 +0100
commit93b311266333101bdd8014f445fae1f42dea1af0 (patch)
tree579cda55fb6a0106317372d83795faa5182fb0b2 /tests/test_build_texinfo.py
parent3a462de2183149c6c5ae30e44f70f6a9cb273b20 (diff)
parente278b6c0276abc572e881268750c7b3101c7f63b (diff)
downloadsphinx-93b311266333101bdd8014f445fae1f42dea1af0.tar.gz
merge with bb://jonwaltman/sphinx-info
Diffstat (limited to 'tests/test_build_texinfo.py')
-rw-r--r--tests/test_build_texinfo.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_build_texinfo.py b/tests/test_build_texinfo.py
index e93de140..ce689a69 100644
--- a/tests/test_build_texinfo.py
+++ b/tests/test_build_texinfo.py
@@ -15,6 +15,8 @@ import sys
from StringIO import StringIO
from subprocess import Popen, PIPE
+from sphinx.writers.texinfo import TexinfoTranslator
+
from util import *
from test_build_html import ENV_WARNINGS
@@ -25,7 +27,9 @@ def teardown_module():
texinfo_warnfile = StringIO()
-TEXINFO_WARNINGS = ENV_WARNINGS
+TEXINFO_WARNINGS = ENV_WARNINGS + """\
+None:None: WARNING: no matching candidate for image URI u'foo.\\*'
+"""
if sys.version_info >= (3, 0):
TEXINFO_WARNINGS = remove_unicode_literals(TEXINFO_WARNINGS)
@@ -33,6 +37,7 @@ if sys.version_info >= (3, 0):
@with_app(buildername='texinfo', warning=texinfo_warnfile, cleanenv=True)
def test_texinfo(app):
+ TexinfoTranslator.ignore_missing_images = True
app.builder.build_all()
texinfo_warnings = texinfo_warnfile.getvalue().replace(os.sep, '/')
texinfo_warnings_exp = TEXINFO_WARNINGS % {'root': app.srcdir}