Fix #6507: autosummary: crashes without no autosummary_generate setting

This commit is contained in:
Takeshi KOMIYA
2019-06-19 01:54:37 +09:00
parent c78018cda7
commit ab38b2dd8e
3 changed files with 24 additions and 8 deletions

View File

@@ -302,3 +302,11 @@ def test_generate_autosummary_docs_property(app):
".. currentmodule:: target.methods\n"
"\n"
".. autoproperty:: Base.prop")
@pytest.mark.sphinx('dummy', testroot='ext-autosummary',
confoverrides={'autosummary_generate': []})
def test_empty_autosummary_generate(app, status, warning):
app.build()
assert ("WARNING: autosummary: stub file not found 'autosummary_importfail'"
in warning.getvalue())