Fix nits.

This commit is contained in:
Georg Brandl 2008-09-11 22:14:34 +00:00
parent 246a7a09b6
commit 703acbfe57
6 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
sphinx.addons
~~~~~~~~~~~~~
sphinx.ext
~~~~~~~~~~
Contains Sphinx features not activated by default.

View File

@ -11,7 +11,7 @@
Uses the basestring encode function from simplejson.
:copyright: Copyright 2008 by Armin Ronacher, Bob Ippolito.
:copyright: 2008 by Armin Ronacher, Bob Ippolito.
:license: BSD.
"""
import re

View File

@ -5,7 +5,7 @@
This module imports JSON functions from various locations.
:copyright: Copyright 2008 by Armin Ronacher.
:copyright: 2008 by Armin Ronacher.
:license: BSD.
"""

View File

@ -149,7 +149,8 @@ htmlhelp_basename = 'SphinxTestsdoc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
('contents', 'SphinxTests.tex', 'Sphinx Tests Documentation', 'Georg Brandl', 'manual'),
('contents', 'SphinxTests.tex', 'Sphinx Tests Documentation',
'Georg Brandl', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of

View File

@ -28,7 +28,8 @@ latex_warnfile = StringIO()
ENV_WARNINGS = """\
WARNING: %(root)s/images.txt:9: Image file not readable: foo.png
WARNING: %(root)s/images.txt:20: Nonlocal image URI found: http://www.python.org/logo.png
WARNING: %(root)s/includes.txt:: (WARNING/2) Encoding 'utf-8' used for reading included file u'wrongenc.inc' seems to be wrong, try giving an :encoding: option
WARNING: %(root)s/includes.txt:: (WARNING/2) Encoding 'utf-8' used for reading included \
file u'wrongenc.inc' seems to be wrong, try giving an :encoding: option
"""
HTML_WARNINGS = ENV_WARNINGS + """\

View File

@ -61,7 +61,8 @@ def test_images():
latexbuilder = LaTeXBuilder(app, env)
latexbuilder.post_process_images(tree)
assert "no matching candidate for image URI u'foo.*'" in app._warning.content[-1]
assert set(latexbuilder.images.keys()) == set(['subdir/img.png', 'img.png', 'img.pdf'])
assert set(latexbuilder.images.keys()) == set(['subdir/img.png',
'img.png', 'img.pdf'])
assert set(latexbuilder.images.values()) == set(['img.pdf', 'img.png', 'img1.png'])
def test_second_update():