summaryrefslogtreecommitdiff
path: root/tests/test_build.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
committerGeorg Brandl <georg@python.org>2009-01-10 22:18:18 +0100
commitaedbdd953d4ea4129273294316c23780cda9cb3b (patch)
tree5044c2146ca4b1756136040d0b4365685b0c4f84 /tests/test_build.py
parentb068e9180365a5d74d4fb02b003d7a05f99ffac3 (diff)
downloadsphinx-git-aedbdd953d4ea4129273294316c23780cda9cb3b.tar.gz
Fix more line length and trailing whitespace.
Diffstat (limited to 'tests/test_build.py')
-rw-r--r--tests/test_build.py22
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/test_build.py b/tests/test_build.py
index 9999abd0a..cb206979b 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -30,9 +30,10 @@ latex_warnfile = StringIO()
ENV_WARNINGS = """\
WARNING: %(root)s/images.txt:9: Image file not readable: foo.png
-WARNING: %(root)s/images.txt:23: 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/images.txt:23: 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:56: Download file not readable: nonexisting.png
"""
@@ -172,12 +173,15 @@ def test_latex(app):
return True
if kpsetest('article.sty') is None:
- print >>sys.stderr, 'info: not running latex, it doesn\'t seem to be installed'
+ print >>sys.stderr, \
+ 'info: not running latex, it doesn\'t seem to be installed'
return
- for filename in ['fancyhdr.sty', 'fancybox.sty', 'titlesec.sty', 'amsmath.sty',
- 'framed.sty', 'color.sty', 'fancyvrb.sty', 'threeparttable.sty']:
+ for filename in ['fancyhdr.sty', 'fancybox.sty', 'titlesec.sty',
+ 'amsmath.sty', 'framed.sty', 'color.sty', 'fancyvrb.sty',
+ 'threeparttable.sty']:
if not kpsetest(filename):
- print >>sys.stderr, 'info: not running latex, the %s package doesn\'t ' \
+ print >>sys.stderr, \
+ 'info: not running latex, the %s package doesn\'t ' \
'seem to be installed' % filename
return
@@ -186,8 +190,8 @@ def test_latex(app):
os.chdir(app.outdir)
try:
try:
- p = Popen(['pdflatex', '--interaction=nonstopmode', 'SphinxTests.tex'],
- stdout=PIPE, stderr=PIPE)
+ p = Popen(['pdflatex', '--interaction=nonstopmode',
+ 'SphinxTests.tex'], stdout=PIPE, stderr=PIPE)
except OSError, err:
pass # most likely pdflatex was not found
else: