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

Function test_pytest_exit

testing/test_runner.py:646–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644
645
646def test_pytest_exit() -> None:
647 with pytest.raises(pytest.exit.Exception) as excinfo:
648 pytest.exit("hello")
649 assert excinfo.errisinstance(pytest.exit.Exception)
650
651
652def test_pytest_fail() -> None:

Callers

nothing calls this directly

Calls 1

errisinstanceMethod · 0.80

Tested by

no test coverage detected