MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_pytest_exit

Function test_pytest_exit

testing/test_runner.py:550–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548
549
550def test_pytest_exit() -> None:
551 with pytest.raises(pytest.exit.Exception) as excinfo:
552 pytest.exit("hello")
553 assert excinfo.errisinstance(pytest.exit.Exception)
554
555
556def test_pytest_fail() -> None:

Callers

nothing calls this directly

Calls 1

errisinstanceMethod · 0.80

Tested by

no test coverage detected