Fix #5146: autosummary: warning is emitted when the first line of docstring ends with literal notation

This commit is contained in:
Takeshi KOMIYA
2018-07-08 21:14:01 +09:00
parent e78133a83e
commit a2f6de88c1
3 changed files with 10 additions and 0 deletions

View File

@@ -81,6 +81,10 @@ def test_extract_summary(capsys):
doc = ['Blabla, i.e. bla.']
assert extract_summary(doc, document) == 'Blabla, i.e.'
# literal
doc = ['blah blah::']
assert extract_summary(doc, document) == 'blah blah.'
_, err = capsys.readouterr()
assert err == ''