mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-11-02 20:30:30 -06:00
Fix #6498: autosummary: crashed with wrong autosummary_generate setting
This commit is contained in:
1 parent
c78018cda7
commit
1aa1373ce3
3 files changed
+20
-7
No files matched your search
@@ -302,3 +302,9 @@ 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': ['unknown']})
|
||||
def test_invalid_autosummary_generate(app, status, warning):
|
||||
assert 'WARNING: autosummary_generate: file not found: unknown.rst' in warning.getvalue()
|
||||
Reference in new issue
Block a user