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

Function get_reraise_exceptions

src/_pytest/runner.py:262–267  ·  view source on GitHub ↗

Return exception types that should not be suppressed in general.

(config: Config)

Source from the content-addressed store, hash-verified

260
261
262def get_reraise_exceptions(config: Config) -> tuple[type[BaseException], ...]:
263 """Return exception types that should not be suppressed in general."""
264 reraise: tuple[type[BaseException], ...] = (Exit,)
265 if not config.getoption("usepdb", False):
266 reraise += (KeyboardInterrupt,)
267 return reraise
268
269
270def check_interactive_exception(call: CallInfo[object], report: BaseReport) -> bool:

Callers 2

__exit__Method · 0.90
call_and_reportFunction · 0.85

Calls 1

getoptionMethod · 0.80

Tested by 1

__exit__Method · 0.72