MCPcopy
hub / github.com/pytest-dev/pytest / runtest

Method runtest

src/_pytest/doctest.py:295–303  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

293 self.dtest.globs.update(globs)
294
295 def runtest(self) -> None:
296 _check_all_skipped(self.dtest)
297 self._disable_output_capturing_for_darwin()
298 failures: list[doctest.DocTestFailure] = []
299 # Type ignored because we change the type of `out` from what
300 # doctest expects.
301 self.runner.run(self.dtest, out=failures) # type: ignore[arg-type]
302 if failures:
303 raise MultipleDoctestFailures(failures)
304
305 def _disable_output_capturing_for_darwin(self) -> None:
306 """Disable output capturing. Otherwise, stdout is lost to doctest (#985)."""

Callers

nothing calls this directly

Calls 4

_check_all_skippedFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected