mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix overlong lines.
This commit is contained in:
parent
6a422c5c77
commit
9abf39f912
@ -191,7 +191,8 @@ def test_format_signature():
|
|||||||
class G2(F2, object):
|
class G2(F2, object):
|
||||||
pass
|
pass
|
||||||
for C in (F2, G2):
|
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
|
# test for methods
|
||||||
class H:
|
class H:
|
||||||
|
@ -299,9 +299,11 @@ def test_i18n_role_xref(app):
|
|||||||
app.builddir.rmtree(True) #for warnings acceleration
|
app.builddir.rmtree(True) #for warnings acceleration
|
||||||
app.builder.build(['role_xref'])
|
app.builder.build(['role_xref'])
|
||||||
result = (app.outdir / 'role_xref.txt').text(encoding='utf-8')
|
result = (app.outdir / 'role_xref.txt').text(encoding='utf-8')
|
||||||
expect = (u"\nI18N ROCK'N ROLE XREF"
|
expect = (
|
||||||
u"\n*********************\n"
|
u"\nI18N ROCK'N ROLE XREF"
|
||||||
u"\nLINK TO *I18N ROCK'N ROLE XREF*, *CONTENTS*, *SOME NEW TERM*.\n")
|
u"\n*********************\n"
|
||||||
|
u"\nLINK TO *I18N ROCK'N ROLE XREF*, *CONTENTS*, *SOME NEW TERM*.\n"
|
||||||
|
)
|
||||||
|
|
||||||
warnings = warnfile.getvalue().replace(os.sep, '/')
|
warnings = warnfile.getvalue().replace(os.sep, '/')
|
||||||
assert 'term not in glossary' not in warnings
|
assert 'term not in glossary' not in warnings
|
||||||
|
Loading…
Reference in New Issue
Block a user