(
checker: Optional["IPDoctestOutputChecker"] = None,
verbose: Optional[bool] = None,
optionflags: int = 0,
continue_on_failure: bool = True,
)
| 256 | |
| 257 | |
| 258 | def _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 | |
| 278 | class IPDoctestItem(pytest.Item): |
no test coverage detected
searching dependent graphs…