Method
summarize
( # type: ignore[override]
self, out: Callable[[str], None], verbose: bool | None = None
)
Source from the content-addressed store, hash-verified
| 256 | |
| 257 | class 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 |
Tested by
no test coverage detected