MCPcopy Index your code
hub / github.com/python/cpython / debug

Method debug

Lib/test/test_interpreters/test_lifecycle.py:40–51  ·  view source on GitHub ↗
(self, msg, *, header=None)

Source from the content-addressed store, hash-verified

38 self._debugged_in_subtest = False
39
40 def debug(self, msg, *, header=None):
41 if header:
42 self._debug(f'--- {header} ---')
43 if msg:
44 if msg.endswith(os.linesep):
45 self._debug(msg[:-len(os.linesep)])
46 else:
47 self._debug(msg)
48 self._debug('<no newline>')
49 self._debug('------')
50 else:
51 self._debug(msg)
52
53 _debugged = False
54 _debugged_in_subtest = False

Callers 15

run_pythonMethod · 0.95
test_enable_loggingMethod · 0.45
test_filenameMethod · 0.45
test_flatMethod · 0.45
test_nested_explicitMethod · 0.45
test_nested_inheritedMethod · 0.45
test_flushMethod · 0.45
test_flush_on_closeMethod · 0.45
test_outputMethod · 0.45

Calls 2

_debugMethod · 0.95
endswithMethod · 0.45

Tested by

no test coverage detected