MCPcopy Index your code
hub / github.com/ipython/ipython / _get_runner

Function _get_runner

IPython/testing/plugin/pytest_ipdoctest.py:258–275  ·  view source on GitHub ↗
(
    checker: Optional["IPDoctestOutputChecker"] = None,
    verbose: Optional[bool] = None,
    optionflags: int = 0,
    continue_on_failure: bool = True,
)

Source from the content-addressed store, hash-verified

256
257
258def _get_runner(
259 checker: Optional["IPDoctestOutputChecker"] = None,
260 verbose: Optional[bool] = None,
261 optionflags: int = 0,
262 continue_on_failure: bool = True,
263) -> "IPDocTestRunner":
264 # We need this in order to do a lazy import on doctest
265 global RUNNER_CLASS
266 if RUNNER_CLASS is None:
267 RUNNER_CLASS = _init_runner_class()
268 # Type ignored because the continue_on_failure argument is only defined on
269 # PytestDoctestRunner, which is lazily defined so can't be used as a type.
270 return RUNNER_CLASS( # type: ignore
271 checker=checker,
272 verbose=verbose,
273 optionflags=optionflags,
274 continue_on_failure=continue_on_failure,
275 )
276
277
278class IPDoctestItem(pytest.Item):

Callers 2

collectMethod · 0.85
collectMethod · 0.85

Calls 1

_init_runner_classFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…