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

Function _check_all_skipped

src/_pytest/doctest.py:451–458  ·  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

449
450
451def _check_all_skipped(test: doctest.DocTest) -> None:
452 """Raise pytest.skip() if all examples in the given DocTest have the SKIP
453 option set."""
454 import doctest
455
456 all_skipped = all(x.options.get(doctest.SKIP, False) for x in test.examples)
457 if all_skipped:
458 skip("all tests skipped by +SKIP option")
459
460
461def _is_mocked(obj: object) -> bool:

Callers 1

runtestMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…