Return exception types that should not be suppressed in general.
(config: Config)
| 260 | |
| 261 | |
| 262 | def 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 | |
| 270 | def check_interactive_exception(call: CallInfo[object], report: BaseReport) -> bool: |