MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / disable_critical_log

Function disable_critical_log

tests_python/test_evaluate_expression.py:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19@pytest.fixture
20def disable_critical_log():
21 # We want to hide the logging related to _evaluate_with_timeouts not receiving the py_db.
22 from _pydev_bundle.pydev_log import log_context
23 import io
24
25 stream = io.StringIO()
26 with log_context(0, stream):
27 yield
28
29
30@pytest.mark.skipif(IS_PY313_0 or IS_PY313_1, reason="Crashes on Python 3.13.0")

Callers

nothing calls this directly

Calls 1

log_contextFunction · 0.90

Tested by

no test coverage detected