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

Method summarize

sphinx/ext/doctest.py:258–269  ·  view source on GitHub ↗
(  # type: ignore[override]
        self, out: Callable[[str], None], verbose: bool | None = None
    )

Source from the content-addressed store, hash-verified

256
257class SphinxDocTestRunner(doctest.DocTestRunner):
258 def summarize( # type: ignore[override]
259 self, out: Callable[[str], None], verbose: bool | None = None
260 ) -> tuple[int, int]:
261 string_io = StringIO()
262 old_stdout = sys.stdout
263 sys.stdout = string_io
264 try:
265 res = super().summarize(verbose)
266 finally:
267 sys.stdout = old_stdout
268 out(string_io.getvalue())
269 return res
270
271 def _DocTestRunner__patched_linecache_getlines(
272 self, filename: str, module_globals: Any = None

Callers 1

test_docMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected