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

Function check_interactive_exception

src/_pytest/runner.py:231–243  ·  view source on GitHub ↗

Check whether the call raised an exception that should be reported as interactive.

(call: "CallInfo[object]", report: BaseReport)

Source from the content-addressed store, hash-verified

229
230
231def check_interactive_exception(call: "CallInfo[object]", report: BaseReport) -> bool:
232 """Check whether the call raised an exception that should be reported as
233 interactive."""
234 if call.excinfo is None:
235 # Didn't raise.
236 return False
237 if hasattr(report, "wasxfail"):
238 # Exception was expected.
239 return False
240 if isinstance(call.excinfo.value, (Skipped, bdb.BdbQuit)):
241 # Special control flow exception.
242 return False
243 return True
244
245
246def call_runtest_hook(

Callers 2

call_and_reportFunction · 0.85
collect_one_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected