summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-03-31 15:44:04 +0200
committerGeorg Brandl <georg@python.org>2013-03-31 15:44:04 +0200
commit9abf39f912ebdf947089c07d2bace20974a3755c (patch)
tree99b923f3a7abc43d65e1990c6c160ab0c4872770
parent6a422c5c77a8752210ddddd4141cabfd783a7a81 (diff)
downloadsphinx-git-9abf39f912ebdf947089c07d2bace20974a3755c.tar.gz
Fix overlong lines.
-rw-r--r--tests/test_autodoc.py3
-rw-r--r--tests/test_intl.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py
index fcd064929..fdc8d5f7f 100644
--- a/tests/test_autodoc.py
+++ b/tests/test_autodoc.py
@@ -191,7 +191,8 @@ def test_format_signature():
class G2(F2, object):
pass
for C in (F2, G2):
- assert formatsig('class', 'C', C, None, None) == '(a1, a2, kw1=True, kw2=False)'
+ assert formatsig('class', 'C', C, None, None) == \
+ '(a1, a2, kw1=True, kw2=False)'
# test for methods
class H:
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 100b0e1d9..4a74e030e 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -299,9 +299,11 @@ def test_i18n_role_xref(app):
app.builddir.rmtree(True) #for warnings acceleration
app.builder.build(['role_xref'])
result = (app.outdir / 'role_xref.txt').text(encoding='utf-8')
- expect = (u"\nI18N ROCK'N ROLE XREF"
- u"\n*********************\n"
- u"\nLINK TO *I18N ROCK'N ROLE XREF*, *CONTENTS*, *SOME NEW TERM*.\n")
+ expect = (
+ u"\nI18N ROCK'N ROLE XREF"
+ u"\n*********************\n"
+ u"\nLINK TO *I18N ROCK'N ROLE XREF*, *CONTENTS*, *SOME NEW TERM*.\n"
+ )
warnings = warnfile.getvalue().replace(os.sep, '/')
assert 'term not in glossary' not in warnings