Fix #7865: autosummary: Failed to extract summary line when abbr. found

This commit is contained in:
Takeshi KOMIYA
2020-06-27 23:33:43 +09:00
parent 03e85df617
commit 2d69b4211a
3 changed files with 10 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ def test_extract_summary(capsys):
# abbreviations
doc = ['Blabla, i.e. bla.']
assert extract_summary(doc, document) == 'Blabla, i.e.'
assert extract_summary(doc, document) == ' '.join(doc)
# literal
doc = ['blah blah::']