MCPcopy
hub / github.com/sphinx-doc/sphinx / warning

Method warning

sphinx/testing/util.py:216–220  ·  view source on GitHub ↗

The in-memory text I/O for the application warning messages.

(self)

Source from the content-addressed store, hash-verified

214
215 @property
216 def warning(self) -> StringIO:
217 """The in-memory text I/O for the application warning messages."""
218 # sphinx.application.Sphinx uses StringIO for a quiet stream
219 assert isinstance(self._warning, StringIO)
220 return self._warning
221
222 def cleanup(self, doctrees: bool = False) -> None:
223 sys.path[:] = self._saved_path

Callers 15

__getattr__Method · 0.45
__getstate__Method · 0.45
_read_conf_pyFunction · 0.45
_validate_valid_typesFunction · 0.45
check_confval_typesFunction · 0.45
check_primary_domainFunction · 0.45
check_master_docFunction · 0.45
warningFunction · 0.45
add_nodeMethod · 0.45
add_directiveMethod · 0.45

Calls

no outgoing calls

Tested by 15

runMethod · 0.36
_warn_outMethod · 0.36
test_docMethod · 0.36
test_groupMethod · 0.36
unknown_visitMethod · 0.36
test_info_and_warningFunction · 0.36
test_once_warning_logFunction · 0.36
test_suppress_warningsFunction · 0.36
test_warning_locationFunction · 0.36
test_suppress_loggingFunction · 0.36
test_pending_warningsFunction · 0.36
test_colored_logsFunction · 0.36