Check whether the call raised an exception that should be reported as interactive.
(call: "CallInfo[object]", report: BaseReport)
| 229 | |
| 230 | |
| 231 | def 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 | |
| 246 | def call_runtest_hook( |
no outgoing calls
no test coverage detected