(monkeypatch)
| 211 | |
| 212 | |
| 213 | def test_capture_crash_never_raises(monkeypatch): |
| 214 | monkeypatch.setattr( |
| 215 | sentry_sdk, "capture_exception", lambda *a, **k: (_ for _ in ()).throw(RuntimeError("sdk broken")) |
| 216 | ) |
| 217 | init_with_transport(CaptureTransport()) |
| 218 | |
| 219 | assert capture_crash(make_exc_info(KeyError("boom")), None, make_args()) is False |
nothing calls this directly
no test coverage detected