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

Function _check_all_skipped

IPython/testing/plugin/pytest_ipdoctest.py:550–557  ·  view source on GitHub ↗

Raise pytest.skip() if all examples in the given DocTest have the SKIP option set.

(test: "doctest.DocTest")

Source from the content-addressed store, hash-verified

548
549
550def _check_all_skipped(test: "doctest.DocTest") -> None:
551 """Raise pytest.skip() if all examples in the given DocTest have the SKIP
552 option set."""
553 import doctest
554
555 all_skipped = all(x.options.get(doctest.SKIP, False) for x in test.examples)
556 if all_skipped:
557 pytest.skip("all docstests skipped by +SKIP option")
558
559
560def _is_mocked(obj: object) -> bool:

Callers 1

runtestMethod · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…