diff options
| author | Georg Brandl <georg@python.org> | 2010-10-22 10:17:35 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-10-22 10:17:35 +0200 |
| commit | 590c57c8a16486c4e2cdff6d79f33b3faacf2d68 (patch) | |
| tree | 0dd4ff9a2c65c8651d5dd4320c70dab98de970c0 /tests/test_build_texinfo.py | |
| parent | f20e978e321cae486665c6d9cfaae3e4dcb65c0b (diff) | |
| download | sphinx-590c57c8a16486c4e2cdff6d79f33b3faacf2d68.tar.gz | |
Few cleanups after texinfo builder merge (#529). Add CHANGES and AUTHORS entries. To do: add node handlers for all extension nodes so that the test documents can be handled without warnings.
Diffstat (limited to 'tests/test_build_texinfo.py')
| -rw-r--r-- | tests/test_build_texinfo.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/test_build_texinfo.py b/tests/test_build_texinfo.py index 33dbcc91..295097ec 100644 --- a/tests/test_build_texinfo.py +++ b/tests/test_build_texinfo.py @@ -10,12 +10,11 @@ """ import os +import re 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 @@ -26,6 +25,8 @@ def teardown_module(): texinfo_warnfile = StringIO() +TEXINFO_WARNINGS = ENV_WARNINGS + if sys.version_info >= (3, 0): TEXINFO_WARNINGS = remove_unicode_literals(TEXINFO_WARNINGS) @@ -33,6 +34,12 @@ if sys.version_info >= (3, 0): @with_app(buildername='texinfo', warning=texinfo_warnfile, cleanenv=True) def test_texinfo(app): app.builder.build_all() + texinfo_warnings = texinfo_warnfile.getvalue().replace(os.sep, '/') + texinfo_warnings_exp = TEXINFO_WARNINGS % {'root': app.srcdir} + #assert re.match(texinfo_warnings_exp + '$', texinfo_warnings), \ + # 'Warnings don\'t match:\n' + \ + # '--- Expected (regex):\n' + texinfo_warnings_exp + \ + # '--- Got:\n' + texinfo_warnings # now, try to run makeinfo over it cwd = os.getcwd() os.chdir(app.outdir) |
