MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_repeat_error_on_stderr

Function test_repeat_error_on_stderr

test/mitmproxy/addons/test_errorcheck.py:38–43  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

36
37
38async def test_repeat_error_on_stderr(capsys):
39 e = ErrorCheck(repeat_errors_on_stderr=True)
40 logging.error("wat")
41 with pytest.raises(SystemExit):
42 await e.shutdown_if_errored()
43 assert "Error logged during startup:\nwat" in capsys.readouterr().err

Callers

nothing calls this directly

Calls 3

shutdown_if_erroredMethod · 0.95
ErrorCheckClass · 0.90
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…