mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-31 17:17:43 -05:00
refactor: Deprecate app._setting_up_extension
This commit is contained in:
1 parent
4ed5c51cff
commit
ca8bc8ca49
5 files changed
+65
-57
No files matched your search
@@ -48,7 +48,8 @@ def test_emit_with_nonascii_name_node(app, status, warning):
|
||||
|
||||
def test_extensions(app, status, warning):
|
||||
app.setup_extension('shutil')
|
||||
assert strip_escseq(warning.getvalue()).startswith("WARNING: extension 'shutil'")
|
||||
warning = strip_escseq(warning.getvalue())
|
||||
assert "extension 'shutil' has no setup() function" in warning
|
||||
|
||||
|
||||
def test_extension_in_blacklist(app, status, warning):
|
||||
|
||||
Reference in new issue
Block a user